DocSpace-client/packages/asc-web-components/context-menu
2021-11-20 00:17:25 +03:00
..
sub-components Web: Components: ContextMenu: Refactoring 2021-11-20 00:17:25 +03:00
svg Web: Components: ContextMenu added base styling 2021-03-30 10:42:10 +03:00
context-menu.stories.js Web: Components: ContextMenu added base styling 2021-03-30 10:42:10 +03:00
context-menu.test.js Web: Components: Reworked context-menu component 2021-03-26 16:03:51 +03:00
index.js Web: Components: ContextMenu: Refactoring 2021-11-20 00:17:25 +03:00
README.md Web: Components/Common: fix imports 2021-02-26 00:19:45 +03:00
styled-context-menu.js Web: Components: ContextMenu: Added property`s for creating menu by component 2021-11-19 17:59:10 +03:00

ContextMenu

ContextMenu is used for a call context actions on a page.

Implemented as part of RowContainer component.

Usage

import ContextMenu from "@appserver/components/context-menu";
<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.

Properties

Props Type Required Values Default Description
className string - - - Accepts class
id string - - contextMenu Accepts id
options array - - [ ] DropDownItems collection
style obj, array - - - Accepts css style
targetAreaId string - - - Id of container apply to
withBackdrop bool - - true Used to display backdrop