DocSpace-buildtools/web/ASC.Web.Components/example/stories/contxt-menu-button/README.md

24 lines
959 B
Markdown
Raw Normal View History

2019-06-25 09:02:44 +00:00
# ContextMenuButton
2019-06-24 13:50:54 +00:00
#### Description
2019-06-25 09:02:44 +00:00
ContextMenuButton is used for displaying context menu actions on a list's item
2019-06-24 13:50:54 +00:00
#### Usage
```js
2019-06-25 09:02:44 +00:00
import { ContextMenuButton } from 'asc-web-components';
<ContextMenuButton
title="Actions"
getData={() => [{key: 'key', label: 'label', onClick: () => alert('label')}]}
/>
2019-06-24 13:50:54 +00:00
```
2019-06-25 09:02:44 +00:00
#### Properties
| Props | Type | Required | Values | Default | Description |
| ------- | -------- | :------: | ------------------------------------------------- | ------- | ------------------------ |
| `title` | `string` | | | - | Specifies the icon title |
| `size` | `string` | | `small`, `medium`, `big` ,`scale` | `medium` | Specifies the icon size |
| `color` | `string` | | | - | Specifies the icon color |