DocSpace-client/packages/asc-web-components/context-menu
2022-07-05 16:32:05 +03:00
..
sub-components Fixed Bug 57768 - Mobile. Fixed click on context menu items 2022-07-05 16:32:05 +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: add leftOffset prop 2022-07-04 06:15:45 +03:00
README.md
styled-context-menu.js Web: Components: Added point change of color parameters for SVG of complex structure 2022-06-28 15:36:58 +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