SHARE
TWEET

Untitled

a guest Jan 21st, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict'
  2.  
  3. import CONSTANTS from 'scripts/constants/Constants'
  4. import MenuItem from 'scripts/context-menus/MenuItem'
  5. // The following contains other menu items created and exported in their own files
  6. // They too will either contain a callback or even more child menu items
  7. import PreviewPageMenuItem from 'scripts/context-menus/PreviewPageMenuItem'
  8. import EditPageMenuItem from 'scripts/context-menus/EditPageMenuItem'
  9. import ForumsMenuItem from 'scripts/context-menus/ForumsMenuItem'
  10. import Separator from 'scripts/context-menus/Separator' // This is a factory for creating menu items that functions as separator
  11.  
  12. const rootProps = {
  13.   id: CONSTANTS.ContextMenus.Root.ID,
  14.   title: CONSTANTS.ContextMenus.Root.TITLE,
  15.   contexts: [ "all" ],
  16.   childMenuItems: [
  17.     EditPageMenuItem,
  18.     PreviewPageMenuItem,
  19.     Separator('sep1'),
  20.     ForumsMenuItem
  21.   ]
  22. }
  23.  
  24. const RootMenuItem = new MenuItem(rootProps)
  25. export default RootMenuItem
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top