angular2-selector
v0.0.1
Published
A native AngularJS 2 directive that transform a simple `<select>` box into a full html select with typeahead.
Downloads
2
Maintainers
Readme
Angular2 Selector
Angular2 Selector is a native AngularJS 2 directive that transform a simple <select>
box into a full html select with typeahead.
Features
- No-jQuery Required Angular2 Selector is a full native Angular directive, so you can use it without have to include any other library (except AngularJS, of course!).
- Skinnable You can define a template for the items in the dropdown list and a template for selected items.
- RTL Support To use it in with any kind of text direction.
- Remote Resource Loading Fetch your data from an external source and use it in your application.
- From HTML
<option>
to JSobject
Fill your<select>
from server-side ad use data-attributes for every option you have, then Angular2 Selector performs for you the conversion to a simple array of objects. - Custom Option Creation You can create new options and add them to the list, just by hitting Enter.
- Keyboard support Move up and down the dropdown list using keyboard arrows. Select highlighted item pressing Enter. Remove last selected item with Del key.
- Responsive Perfect for use in mobile environments.
Installation
Get Angular2 Selector from npm, bower or git:
npm install angular2-selector
bower install angular2-selector
git clone https://github.com/indrimuska/angular2-selector.git
License
Copyright (c) 2016 Indri Muska. Licensed under the MIT license.