logo

/repo|v1.4.10

Class

deprecatednew Button(options, $el)button.jsline 21

Class Button UI

EXTENDS
  • ToolbarItem
PARAMETERS
NameTypeDescription

options

object = {tagName:'button',name:Button.name}

button options

PROPERTIES
NameTypeDescription

className

string

button class name

command

string

command name to execute on click

event

string

event name to trigger on click

text

string

text on button

tooltip

string

text on tooltip

style

string

button style

state

string

button state

$el

jquery

button rootElement

Static Properties

className:

String

button.jsline 34

ToolbarItem className

name:

String

button.jsline 27

item name

Instance Methods

disable()button.jsline 119

disable button

enable()button.jsline 112

enable button

isEnabled()button.jsline 127

check whether this button is enabled

RETURNS:
{

Boolean

} - true for enabled

setTooltip(text)button.jsline 61

set tooltip text

PARAMETERS
NameTypeDescription

text

string

tooltip text to show

Resizable