Skip to content

lovedota/react-bootstrap-select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React-Select

A Select control built for React from Bootstrap Select.

#Description

#Demo

Single Select

import SelectPicker from "react-select-picker";

<SelectPicker
    className="form-control"
    title="Select Cities"
    disabled={this.props.isDisabled}
    defaultValue={this.props.selectedCityIds}
    onChange={this.onChange.bind(this)}
>
    {options}
</SelectPicker>

Multiple Select

import SelectPicker from "react-select-picker";

<SelectPicker
    className="form-control"
    title="Select Cities"
    multiple
    disabled={this.props.isDisabled}
    defaultValue={this.props.selectedCityIds}
    onChange={this.onChange.bind(this)}
>
    {options}
</SelectPicker>

Demo repository

Run

npm install
npm install -g gulp
npm install -g tsd

tds reinstall -so
gulp serve

Tips

https://gist.github.com/coolaj86/1318304

About

React Bootstrap Select written by TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published