ugsEditorPlus.topMenus Class
Handles Top Menu UI -- includes the show/hide dialogs (why? cuz they're attached to top menu buttons) Shows (a) dialongs (such as Edit) and (b) those tool-tippy options thingies.
Item Index
Methods
_closeAll
()
Void
private
Same as _makeAllInactive method PLUS closes any open drop down/arrow boxes.
Returns:
_init
()
Void
public
attaches events...
Returns:
_makeAllInactive
()
Void
private
Deselects all items in app's top menu/nav bar (just removes active state from all items)
Returns:
_onCloseBtnClick
-
e
dialog box's close button's click handler. Hides the first parent with class.
Parameters:
-
e
Event
Returns:
false to kill event bubbling
_onMenuItemClick
()
Void
private
Click handler for nav items that are NOT attached to a dialog box.
Returns:
_onShowDlgBtnClick
-
e
handles nav menu/toolbar click event. The data-dialog="X" attribute on the element assocaites the menu item with the dialog box (the box's id)
Parameters:
-
e
Event
Returns:
false to kill event bubbling
_onShowOptionsClick
-
e
display a "tooltip" options dialog
Parameters:
-
e
Event
Returns:
false to kill event bubbling