web: Components: Fixed ContextMenu component readme
This commit is contained in:
parent
f586512efc
commit
5c5d4bf3dd
@ -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 |
|
||||
| -------------- | :------: | :------: | :----: | :-----: | ------------------------ |
|
||||
| `options` | `array` | - | - | `[ ]` | DropDownItems collection |
|
||||
| `targetAreaId` | `string` | - | - | - | Id of container apply to |
|
||||
|
Loading…
Reference in New Issue
Block a user