GithubHelp home page GithubHelp logo

matthieu-d / angular-bootstrap-multiselect Goto Github PK

View Code? Open in Web Editor NEW

This project forked from edgargonzalez525/angular-bootstrap-multiselect

0.0 2.0 0.0 56 KB

A multiselect dropdown list for AngularJS styled to fit the Twitter Bootstrap standard design

License: MIT License

JavaScript 20.38% HTML 79.62%

angular-bootstrap-multiselect's Introduction

angular-bootstrap-multiselect

A multiselect dropdown list for AngularJS styled to fit the Twitter Bootstrap standard design

Screenshot:

Screenshot

Originally created by Amitava Saha (https://github.com/amitava82/angular-multiselect)

Installation via Bower:

$ bower install angular-bootstrap-multiselect --save

Usage:

Add "ui.multiselect" to your modules list. Then you can use it like follows:

<multiselect
    ng-model="selectModel"
    options="c for c in selectOptions"    // use ... c.name for c in ... for objects
    data-multiple="true"                  // true for multi-select mode
    data-compare-by="id"                  // set key to compare objects, otherwise is has to be equal to options
    scroll-after-rows="5"                 // Show scroll bar after 5 rows
    filter-after-rows="5                  // Show filter input after 5 rows
    max-width="100"                       // The maximum width of the multiselect dropdown button
    tabindex="-1">                        // tabindex setting for dropdown
</multiselect>

See index.html and app.js for examples and how it works.

Testing:

Start web server e.g. via Python:

$ python -m SimpleHTTPServer 8000

Start Karma E2E tests (has to be installed globally before):

$ karma start

License

Copyright (c) 2015 Sebastian Hammerl, Getslash GmbH

Copyright (c) 2014 Amitava Saha

Licensed under the MIT License

angular-bootstrap-multiselect's People

Contributors

amitava82 avatar runxc1 avatar alabras avatar spoke2k avatar matthieu-d avatar nathantsoi avatar

Watchers

James Cloos 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.