API Docs for: 1.4.4
Show:

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.

Methods

_closeAll

() Void private

Same as _makeAllInactive method PLUS closes any open drop down/arrow boxes.

Returns:

Void:

_init

() Void public

attaches events...

Returns:

Void:

_makeAllInactive

() Void private

Deselects all items in app's top menu/nav bar (just removes active state from all items)

Returns:

Void:

_onCloseBtnClick

(
  • e
)
Bool private

dialog box's close button's click handler. Hides the first parent with class.

Parameters:

  • e Event

Returns:

Bool:

false to kill event bubbling

_onMenuItemClick

() Void private

Click handler for nav items that are NOT attached to a dialog box.

Returns:

Void:

_onShowDlgBtnClick

(
  • e
)
Bool private

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:

Bool:

false to kill event bubbling

_onShowOptionsClick

(
  • e
)
Bool private

display a "tooltip" options dialog

Parameters:

  • e Event

Returns:

Bool:

false to kill event bubbling