DocSpace-buildtools/packages/asc-web-components/context-menu
2022-05-27 17:44:10 +03:00
..
sub-components Web: Files: added id to MainButton 2022-05-04 13:26:12 +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 Fix Bug 52793 - Android.Docs.Mobile. Context menu of file/folder after long tap has new position 2022-05-27 17:44:10 +03:00
README.md Web: Components/Common: fix imports 2021-02-26 00:19:45 +03:00
styled-context-menu.js Fix Bug 52793 - Android.Docs.Mobile. Context menu of file/folder after long tap has new position 2022-05-27 17:44: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