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