Giter VIP home page Giter VIP logo

bootstrap-select-button's Introduction

bootstrapSelectButton

This component is designed for use with Angular 1.2.x - 1.3x and the Twitter Bootstrap 3.x. It creates a bindable button dropdown (see Bootstrap components: Button dropdowns that looks like a Bootstrap btn and behaves like an HTML <select> tag.

You can see a demo in JS Fiddle here:

How do I use the bootstrapSelectButton?

You can install bootstrapSelectButton using Bower:

bower install bootstrap-select-button

Next you'll need to include the bootstrapSelectButton module in your application.

Lastly, simply add the following attributes to a any DOM element:

<div bootstrap-select-button
     options="bindableOptionsSet"
     selected-option="bindableSelectedOption">
</div>

Configuration Options

  • options: Set (Array) of Strings or Objects
  • selectedOption: Bindable attribute to store the selected option
  • optionIconKey: Optional icon attribute if options Array contains Objects; defaults to icon
  • optionLabelKey: Optional label attribute if options Array contains Objects; defaults to label
  • dropdownToggleClass: Optional button class for the dropdown toggle; defaults to btn-default

bootstrap-select-button's People

Contributors

bvaughn avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.