| getCount() | ใช้คืนค่า จำนวน button ทั้งหมด ที่อยู่ภายใน buttonGroup |
|---|
method:getCount ( )
return type:number
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 count_button = group_button.getCount ( );