| beforeContainerChange() | เป็นการกำหนดให้ function ทำงาน เมื่อ ก่อนที่จะเปลี่ยนแปลง คุณสมบัติ container ของ buttongroup |
|---|
method:beforeContainerChange ( event )
return type:void
content:เป็นการกำหนดให้ function ทำงาน เมื่อ ก่อนที่จะเปลี่ยนแปลง คุณสมบัติ container ของ buttongroup
example:var attributes = { name: "button-group", disabled: false }; var group_button = new YAHOO.widget.ButtonGroup ( "bgroup", attributes ); group_button.beforeContainerChange.subscribe ( function ( event ) { alert ( "before container change" ); } );