Button(options)

Class Button UI

new Button(options)

Creates an instance of Button.

Parameters:
Name Type Description
options object

button options

Properties
Name Type Description
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

Deprecated:
  • Yes

Extends

Members

static className :String

ToolbarItem className

static name :String

item name

Methods

destroy()

destroy

Inherited From:

getName() → {string}

get the name of the toolbar item

Returns:
string -
  • the name of the toolbar item
Inherited From:

off(type, fn)

unbind event handler

Parameters:
Name Type Description
type string

event name and selector

fn function

handler function

Inherited From:

on(aType, aFn)

Parameters:
Name Type Description
aType string | object

event name and selector string

aFn function

event handler

Inherited From:

remove()

remove

Inherited From:

trigger(…args)

trigger event

Parameters:
Name Type Attributes Description
args object <repeatable>

event name & extra params

Inherited From: