| createButtonElement() | ใช้สร้าง button ใหม่ โดยมี type ตามที่กำหนด |
|---|
method:createButtonElement ( type )
return type:HTMLElement
content:ใช้สร้าง button ใหม่ โดยมี type ตามที่กำหนด
example:var attributes = { label: "One" }; var checkbox_button = new YAHOO.widget.Button( "checkbutton", attributes ); var element = checkbox_button.createButtonElement ( "menu" );
comment:ตัวแปร type คือ กำหนดประเภทของ button ได้แก่ radio, checkbox, menu, split