Class: Combo

Combo

new Combo(props)

A combo-box component for React Bootstrap
Parameters:
Name Type Description
props Object A props config
Example
import {Combo} from 'react-bootstrap-combobox';
import {render} from 'react-dom';

render(<Combo items={{
  // keys must be unique
  a: {label: 'first item', header: true}, // any combination of props supported by MenuItem
  b: 'second item',                       // same as {label: 'second item'}
  c: '-'                                  // same as {divider: true}
}} value="b" />, document.getElementById('app'));

Methods

getLabel() → {string}

A label of the currently active menu item
Returns:
a label of the currently active menu item
Type
string