BeforeOpenCloseMenuEventArgs

Interface represents the event arguments for the beforeOpen and beforeClose event.

Properties

cancel Boolean

Gets or sets a value indicating whether we should cancel the operation or not.

element HTMLElement

Gets the menu HTML element.

event Event

Gets the original triggered event arguments.

isFocused Boolean

Gets a value indicating whether the menu is focused.

items MenuItemModel[]

Gets the list of menu items in the menu.

left Number

Gets the position of the menu from the left of the viewport.

name String

Gets the name of the event.

parentItem MenuItemModel

Gets the parent menu item model.

showSubMenuOn MenuOpenType

Gets the menu open type for sub-menus.

top Number

Gets the position of the menu from the top of the viewport.