Reference Source
public class | source

Button

Represents a ui button

See:

Constructor Summary

Public Constructor
public

constructor(id: String, options: Object)

Constructor

Method Summary

Public Methods
public

enable(flag: Boolean): Null

enable or disable the button

Public Constructors

public constructor(id: String, options: Object) source

Constructor

Params:

NameTypeAttributeDescription
id String

button id

options Object

config params

options.enable Boolean

if false, button will be disabled

options.icon String

icon type for internal use

options.imageUrl String

button image url

options.click function(e: Object): null

callback function will run on click event

Public Methods

public enable(flag: Boolean): Null source

enable or disable the button

Params:

NameTypeAttributeDescription
flag Boolean

if false, button will be disabled

Return:

Null