Lurch Web 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