DocSpace-client/packages/components/context-menu
2022-10-06 17:39:15 +03:00
..
sub-components Web: Added context menu to the mobile view. 2022-09-23 12:33:04 +03:00
svg Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
context-menu.stories.js Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
context-menu.test.js Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
index.js Web:Components: add header context menu for accounts 2022-10-06 17:33:26 +03:00
README.md Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
styled-context-menu.js Web:Components:ContextMenu: fix header styles 2022-10-06 17:39:15 +03:00

ContextMenu

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

Implemented as part of RowContainer component.

Usage

import ContextMenu from "@docspace/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