Lurch web app user interface

Class

ButtonItem

An item that can be used in a Dialog and shows up as a clickable button. This corresponds to the "button" type of body component in a TinyMCE dialog.

Constructor

new ButtonItem(text, action, stringopt)

Construct a button.

Parameters

  • text string

    the text shown on the button

  • action function

    the function to call when the button is clicked; it will be passed the Dialog instance

  • string <optional>

    name - the name of the button, internally (will default to the text parameter, but if you have multiple buttons with the same text, TinyMCE requires they all have different names internally)

Source

Classes

ButtonItem

Methods

getElement() → {HTMLElement}

Find the element in the DOM representing this button. This works only if the dialog containing the button has been shown on screen, not before.

Returns

  • HTMLElement

    the DOM element with tag "BUTTON"

Source