2019-07-18 08:00:54 +00:00
|
|
|
# ComboBox
|
|
|
|
|
|
|
|
#### Description
|
|
|
|
|
|
|
|
Custom combo box input
|
|
|
|
|
|
|
|
#### Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
import { ComboBox } from 'asc-web-components';
|
|
|
|
|
2019-07-26 09:02:08 +00:00
|
|
|
<ComboBox options={options} isDisabled={false}/>
|
2019-07-18 08:00:54 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Properties
|
|
|
|
|
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ---------------------- | ----------------- | :------: | ---------------------------- | ------- | -------------------------------------------- |
|
2019-07-26 09:02:08 +00:00
|
|
|
| `options` | `array` | ✅ | - | - | Combo box options |
|
|
|
|
| `isDisabled` | `bool` | - | - | `false` | Indicates that component is disabled |
|
|
|
|
| `withBorder` | `bool` | - | - | `true` | Indicates that component contain border |
|
|
|
|
| `selectedIndex` | `number` | - | - | `0` | Index of option selected by default |
|