Skip to content

bradleytrager/angular-combo-box

Repository files navigation

angular-combo-box

Join the chat at https://gitter.im/bradleytrager/angular-combo-box Lightweight Angular JS directive (~1K minified) which combines a select element with a text input.

Build Status Bower version Coverage Status

Demo

##Install

####Manual download Download latest release from here

####Bower

bower install angular-combo-box

##Usage

<combo-box
	label="--Select--" //The default option if nothing is chosen
    options="options" //An array of predefined options
    combo-model="comboModel" //The bound value of the combo box
    other-label="An option not on the list..." //Optional label for other input
    select-class="{'red': true}" //Optional expression for ng-class on select
    input-class="{'green': true}" //Optional expression for ng-class on input
></combo-box>
//Include 'ngComboBox as a module dependency
angular.module('ngComboBoxExample', ['ngComboBox'])
    .controller('myController', function ($scope) {
    $scope.options = [
        //List of predefined options    
    ];
    //The bound value of the combo box
    $scope.comboModel = null;
});

About

Angular directive which combines a select element with a text input.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors