You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

bs-select

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-select

A consistently styled cross-browser select component

1.3.2
latest
Source
npm
Version published
Weekly downloads
6
-50%
Maintainers
1
Weekly downloads
 
Created
Source

bs-select

A consistently styled cross-browser and keyboard friendly select component

Requirements

  • Angular 1.3
  • Lodash
  • jQuery

Installation

  • Install through npm npm install --save bs-select
  • 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/

FAQs

Package last updated on 18 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts