web: Components: Fixed ContextMenu component readme

This commit is contained in:
Ilya Oleshko 2019-11-20 09:07:53 +03:00
parent f586512efc
commit 5c5d4bf3dd

View File

@ -1,30 +1,29 @@
# ContextMenu
## Usage
ContextMenu is used for a call context actions on a page.
> Implemented as part of RowContainer component.
### Usage
```js
import { ContextMenu } from "asc-web-components";
```
#### Description
ContextMenu is used for a call context actions on a page.
Implemented as part of RowContainer component.
#### Usage
```jsx
<ContextMenu
targetAreaId="rowContainer"
options={[]}
/>
```
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={[]} />
```
### Properties
#### Properties
| Props | Type | Required | Values | Default | Description |
| -------------- | -------- | :------: | ------ | ------- | ------------------------ |
| `options` | `array` | - | - | [] | DropDownItems collection |
| `targetAreaId` | `string` | - | - | - | Id of container apply to |
| Props | Type | Required | Values | Default | Description |
| -------------- | :------: | :------: | :----: | :-----: | ------------------------ |
| `options` | `array` | - | - | `[ ]` | DropDownItems collection |
| `targetAreaId` | `string` | - | - | - | Id of container apply to |