Reference Source
public class | source

Button

UI的按钮类

See:

Constructor Summary

Public Constructor
public

constructor(id: String, options: Object)

构造函数

Method Summary

Public Methods
public

enable(flag: Boolean): Null

启用或禁用按钮

Public Constructors

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

构造函数

Params:

NameTypeAttributeDescription
id String

按钮的id

options Object

设置参数

options.enable Boolean

是否启用按钮

options.imageUrl String

按钮图像的路径

options.click function(e: Object): null

按钮点击时将会执行的函数

Public Methods

public enable(flag: Boolean): Null source

启用或禁用按钮

Params:

NameTypeAttributeDescription
flag Boolean

如果为false,按钮将会被禁用,如果为true,按钮将会被启用

Return:

Null