| getButton() | ใช้คืนค่า button ณ ตำแหน่งที่กำหนด ที่อยู่ภายใน buttonGroup |
|---|
method:getButton ( index )
return type:YAHOO.widget.Button
content:ใช้คืนค่า button ณ ตำแหน่งที่กำหนด ที่อยู่ภายใน buttonGroup
example:var attributes = { name: "button-group", disabled: false }; var group_button = new YAHOO.widget.ButtonGroup ( "bgroup", attributes ); group_button.addButtons ( [ { label: "Radio 1", value: "1", checked: true }, { label: "Radio 2", value: "2" }, { label: "Radio 3", value: "3" } ] ); var button_target = group_button.getButton ( 1 );