Remoto - VFS: paneMenu Class Reference
Remoto - VFS

Create a menu. More...

#include "remoto!stdlib:js/paneManager/paneMenu.js"

Public Member Functions

 paneMenu (path, subscribe)
 
 addItem (p, l, t)
 
 addSubMenu (l, m, icon, submenuHandler)
 
 applyDiff (d)
 
 createModalMenu (button, position, dismissCallback)
 
 destroy ()
 destroy this menu, and if it is a subscription, unsubsubscribe. More...
 
 hasItemWithLabel (l)
 Check to see if an item already exists with a given label. More...
 
 hasItemWithPath (p)
 Check to see if an item already exists with a given path. More...
 
 modalMenuEvents (dismissCallback, defaultCallback)
 
 removeAllItems ()
 Remove all items from this menu. More...
 
 removeItem (p)
 
 submenuTest ()
 Test if submenu items exist. More...
 

Detailed Description

Create a menu.

This will be called from the menuManager and will need a unique name.

See also
menuManager.createMenu()

Constructor & Destructor Documentation

◆ paneMenu()

paneMenu (   path,
  subscribe 
)
Parameters
pathIf the menu is connected to the VFS, it will need a path. This idea has been deprecated, but could appear again as an undead zombie.
subscribeSubscribe to the VFS path

Member Function Documentation

◆ addItem()

addItem (   p,
  l,
  t 
)
Parameters
p
l
t
Returns

DOCME

◆ addSubMenu()

addSubMenu (   l,
  m,
  icon,
  submenuHandler 
)
Parameters
l
m
icon
submenuHandlerDOCME

◆ applyDiff()

applyDiff (   d)
Parameters
dDOCME

◆ createModalMenu()

createModalMenu (   button,
  position,
  dismissCallback 
)
Parameters
button
position
dismissCallbackAn optional callback that will always be called when the menu closes
Returns

DOCME

◆ destroy()

destroy ( )

destroy this menu, and if it is a subscription, unsubsubscribe.

◆ hasItemWithLabel()

hasItemWithLabel (   l)

Check to see if an item already exists with a given label.

Parameters
lThe label to check
Returns
boolean true if path was found in an item

◆ hasItemWithPath()

hasItemWithPath (   p)

Check to see if an item already exists with a given path.

Parameters
pThe path to check
Returns
boolean true if path was found in an item

◆ modalMenuEvents()

modalMenuEvents (   dismissCallback,
  defaultCallback 
)
Parameters
dismissCallbackAn optional callback for when the menu is dismissed by the mouse leaving the menu and gutter
defaultCallbackAn optional callback for if an item doesn't have a callback
Returns

DOCME

◆ removeAllItems()

removeAllItems ( )

Remove all items from this menu.

DOCME

◆ removeItem()

removeItem (   p)
Parameters
pDOCME

◆ submenuTest()

submenuTest ( )

Test if submenu items exist.

Returns
true or false

This will return true if any sub-items exist, or false if none. Even if all sub-items are disabled, it's helpful for the user to see them.


The documentation for this class was generated from the following file: