2019-06-10 12:28:54 +00:00
|
|
|
# DropDown
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
import { DropDown } from 'asc-web-components';
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Description
|
|
|
|
|
|
|
|
Is a dropdown with any number of action
|
|
|
|
|
|
|
|
#### Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
<DropDown opened={false}></DropDown>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Properties
|
|
|
|
|
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ------------------ | -------- | :------: | --------------------------- | -------------- | ----------------------------------------------------------------- |
|
2019-06-28 11:37:43 +00:00
|
|
|
| `opened` | `bool` | - | - | `false` | Tells when the dropdown should be opened |
|
2019-07-18 08:09:39 +00:00
|
|
|
| `direction` | `oneOf` | - | `left`, `right` | `left` | Sets the opening direction relative to the parent |
|
|
|
|
| `manualWidth` | `string` | - | - | - | Required if you need to specify the exact width of the component, for example 100%|
|
|
|
|
| `manualTop` | `string` | - | - | - | Required if you need to specify the exact distance from the parent component|
|