| Yahoo.widget.Button ( element, attributes ) | ใช้สร้าง object Button |
|---|
method:Yahoo.widget.Button ( element, attributes )
return type:Button
content:ใช้สร้าง object Button
example:var attributes = { label: "One" }; var checkbox_button = new YAHOO.widget.Button( "checkbutton", attributes );
comment:ตัวแปร element คือ id ของ element หรือ dom element ที่ต้องการให้เกิดการกระทำนี้ ตัวแปร attributes คือ ใช้กำหนดคุณสมบัติให้กับ object เช่น checked, container, disabled, href เป็นต้น