Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[评审]UI标准 - Button #49

Closed
DDDBear opened this issue May 12, 2013 · 0 comments
Closed

[评审]UI标准 - Button #49

DDDBear opened this issue May 12, 2013 · 0 comments
Labels

Comments

@DDDBear
Copy link
Contributor

DDDBear commented May 12, 2013

ECOM UI组件标准 - Button

继承层级

Button
    - Control

prototype.type

"Button"

控件主元素

任何元素都可做为按钮的控件主元素。默认的控件主元素为button。

属性

{string} content

按钮的显示文字。不进行HTML过滤。

{number} height

按钮的高度。

{number} width

按钮的宽度。

公共实例方法

{void} setContent( {string} content )

设置按钮的显示文字。

参数:

  • {string} content: 按钮的显示文字

{void} setHeight( {number} height )

设置按钮的高度。

参数:

  • {number} height: 按钮的高度

{void} setWidth( {number} width )

设置按钮的高度。

参数:

  • {number} width: 按钮的宽度

事件

click

当按钮被点击时触发。

事件对象成员:

  • {string}type: 事件名
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants