GithubHelp home page GithubHelp logo

miguelcobain / emberx-select Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adopted-ember-addons/emberx-select

0.0 2.0 0.0 161 KB

Select component for Ember based on the native html select element.

License: MIT License

JavaScript 85.21% HTML 11.69% Handlebars 3.10%

emberx-select's Introduction

emberx-select

Build Status Ember Observer Score

A Select component based on the native html select.

Why a select component? Because Ember.Select is hard to use, and really, all you want to do is just use a <select> tag dammit. The only difference is that you want value of the options to be any object and not just a string.

By allowing arbitrary html to appear in the template of the select element, you can use it just like you would normally. This means things like having <optgroup> tags inside your select, or even plain old <option> elements to represent things like empty values.

XSelect thinly wraps a native element so that it can be object and binding aware. It is used in conjuction with the x-option component to construct select boxes. E.g. {{#x-select value=bob action="selectPerson"}} {{#x-option value=fred}}Fred Flintstone{{/x-option}} {{#x-option value=bob}}Bob Newhart{{/x-option}} {{/x-select}} the options are always up to date, so that when the object bound to value changes, the corresponding option becomes selected. Whenever the select tag receives a change event, it will fire action EmberX emberx-select is part of the "missing components of ember" collectively known as emberx. See also: emberx-slider Installation ember install:addon emberx-select Running Tests ember test ember test --server

emberx-select's People

Contributors

cowboyd avatar ember-tomster avatar kategengler avatar mitchlloyd avatar stefanpenner avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.