GithubHelp home page GithubHelp logo

lucasbonanni / angular-combo-box Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bradleytrager/angular-combo-box

0.0 2.0 0.0 1.43 MB

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

Home Page: http://bradleytrager.github.io/angular-combo-box/

License: MIT License

JavaScript 44.94% CSS 10.08% HTML 44.98%

angular-combo-box's Introduction

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;
});

angular-combo-box's People

Contributors

bradleytrager avatar gitter-badger avatar

Watchers

James Cloos avatar Lucas Bonanni 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.