Next Pizza's Mine

    bs-select

    1.3.2 • Public • Published

    bs-select

    A consistently styled cross-browser and keyboard friendly select component

    Requirements

    • Angular 1.3
    • Lodash
    • jQuery

    Installation

    1. Install through npm npm install --save bs-select
    2. Make sure your angular app depends upon 'bs-select':
    angular.module('app', ['bs-select']);

    Usage

    Markup:

    <bs-select ng-model="model" collection="collection"></bs-select>
    scope.model = {
        value: "Arizona",
        key: "AZ"
    };
     
    scope.collection = [{
        "value": "Alabama",
        "key": "AL"
    }, {
        "value": "Alaska",
        "key": "AK"
    }, {
        "value": "American Samoa",
        "key": "AS"
    }, {
        "value": "Arizona",
        "key": "AZ"
    }, {
        "value": "Arkansas",
        "key": "AR"
    }];
     
    // The collection object can also be an array of strings
    scope.collection = [
        "Alabama",
        "Alaska",
        "American Samoa",
        "Arizona",
        "Arkansas",
    ];
     

    Demo

    http://beanstalkhq.github.io/bs-select/

    Keywords

    none

    Install

    npm i bs-select

    DownloadsWeekly Downloads

    4

    Version

    1.3.2

    License

    MIT

    Last publish

    Collaborators

    • blittle