| beforeDestroyEvent() | เป็นการกำหนดให้ function ทำงาน เมื่อ ก่อนที่ Object Calendar จะถูกทำลาย |
|---|
method:beforeDestroyEvent ( )
return type:void
content:เป็นการกำหนดให้ function ทำงาน เมื่อ ก่อนที่ Object Calendar จะถูกทำลาย
example:var config = { pagedate: "1/2009", mindate: "1/5/2009", maxdate: "1/15/2009" }; var calendar = new YAHOO.widget.Calendar ( "table", "container", config ); calendar.beforeDestroyEvent.subscribe ( function ( ) { alert ( "before destroy calendar" ); } ); calendar.render ( );