web: Components: Fixed readme of ContextMenu component
This commit is contained in:
parent
a7ed0e8910
commit
4c9679b0bd
@ -10,8 +10,14 @@ import { ContextMenu } from "asc-web-components";
|
||||
|
||||
ContextMenu is used for a call context actions on a page.
|
||||
|
||||
Implemented as part of RowContainer component.
|
||||
|
||||
#### Usage
|
||||
|
||||
For use within separate component it is necessary to determine active zone and events for calling and transferring options in menu.
|
||||
|
||||
In particular case, state is created containing options for particular Row element and passed to component when called.
|
||||
|
||||
```js
|
||||
<ContextMenu targetAreaId="rowContainer" options={[]} />
|
||||
```
|
||||
@ -20,5 +26,5 @@ ContextMenu is used for a call context actions on a page.
|
||||
|
||||
| Props | Type | Required | Values | Default | Description |
|
||||
| -------------- | -------- | :------: | ------ | ------- | ------------------------ |
|
||||
| `options` | `array` | - | - | - | DropDownItems collection |
|
||||
| `options` | `array` | - | - | [] | DropDownItems collection |
|
||||
| `targetAreaId` | `string` | - | - | - | Id of container apply to |
|
||||
|
Loading…
Reference in New Issue
Block a user