Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • menuUI

Index

Methods Event Listeners

Methods Other

Event Listeners Methods

  • on(type: "show", listener: (sender: menuUI, args: any, args1: any, args2: any) => boolean | void): menuUI
  • The on() method of the menuUI interface sets up a function that will be called whenever the specified event is delivered to the target. *

    Parameters

    • type: "show"

      A case-sensitive string representing the event type to listen for.

    • listener: (sender: menuUI, args: any, args1: any, args2: any) => boolean | void

      The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.

        • (sender: menuUI, args: any, args1: any, args2: any): boolean | void
        • Parameters

          • sender: menuUI
          • args: any
          • args1: any
          • args2: any

          Returns boolean | void

    Returns menuUI

Other Methods

  • hide(): void
  • Hieds the menu

    Returns void

  • isVisible(): boolean
  • Returns true if the menu is visible

    Returns boolean

  • show(x: number | HTMLElement, y?: number, firstNodeId?: string | number, secondNodeId?: string | number, menu?: {}): void
  • Shows menu by x,y position

    Parameters

    • x: number | HTMLElement
    • Optional y: number
    • Optional firstNodeId: string | number
    • Optional secondNodeId: string | number
    • Optional menu: {}

    Returns void

  • showStickIn(stickToElement: HTMLElement, firstNodeId: string | number, secondNodeId: string | number, menu: {}): void
  • Shows menu next to html element

    Parameters

    • stickToElement: HTMLElement
    • firstNodeId: string | number
    • secondNodeId: string | number
    • menu: {}

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Static property
  • Static method
  • Method
  • Inherited method

Settings

Theme

Generated using TypeDoc