Skip to content
Browse files

Tabs: Update events to 1.9 API

  • Loading branch information...
1 parent 65d34f9 commit 7dbf536153bfcdf8646cc41d1ba1701a04a54229 @jzaefferer jzaefferer committed May 29, 2012
Showing with 22 additions and 36 deletions.
  1. +22 −36 entries/tabs.xml
View
58 entries/tabs.xml
@@ -76,70 +76,56 @@
<argument name="ui" type="Object">
</argument>
</event>
- <event name="select" type="tabsselect">
- <desc>This event is triggered when clicking a tab.</desc>
+ <event name="beforeActivate" type="tabsselect">
+ <desc>Triggered directly after a tab is activated. Can be cancelled to prevent the tab from activating.</desc>
<argument name="event" type="Event">
<desc></desc>
</argument>
<argument name="ui" type="Object">
<desc></desc>
+ <property name="newTab"></property>
+ <property name="oldTab"></property>
+ <property name="newPanel"></property>
+ <property name="newPanel"></property>
</argument>
</event>
- <event name="load" type="tabsload">
- <desc>This event is triggered after the content of a remote tab has been loaded.</desc>
- <argument name="event" type="Event">
- <desc></desc>
- </argument>
- <argument name="ui" type="Object">
- <desc></desc>
- </argument>
- </event>
- <event name="show" type="tabsshow">
- <desc>This event is triggered when a tab is shown.</desc>
- <argument name="event" type="Event">
- <desc></desc>
- </argument>
- <argument name="ui" type="Object">
- <desc></desc>
- </argument>
- </event>
- <event name="add" type="tabsadd">
- <desc>This event is triggered when a tab is added.</desc>
- <argument name="event" type="Event">
- <desc></desc>
- </argument>
- <argument name="ui" type="Object">
- <desc></desc>
- </argument>
- </event>
- <event name="remove" type="tabsremove">
- <desc>This event is triggered when a tab is removed.</desc>
+ <event name="activate" type="tabsselect">
+ <desc>Triggered after a tab has been activated and the associated panels have been shown and hidden.</desc>
<argument name="event" type="Event">
<desc></desc>
</argument>
<argument name="ui" type="Object">
<desc></desc>
+ <property name="newTab"></property>
+ <property name="oldTab"></property>
+ <property name="newPanel"></property>
+ <property name="newPanel"></property>
</argument>
</event>
- <event name="enable" type="tabsenable">
- <desc>This event is triggered when a tab is enabled.</desc>
+ <event name="beforeLoad" type="tabsload">
+ <desc>Triggered after beforeActivate for a remote tab. Can be cancelled to prevent the tab panel from loading content.</desc>
<argument name="event" type="Event">
<desc></desc>
</argument>
<argument name="ui" type="Object">
<desc></desc>
+ <property name="tab"></property>
+ <property name="panel"></property>
+ <property name="jqXHR"></property>
+ <property name="ajaxSettings"></property>
</argument>
</event>
- <event name="disable" type="tabsdisable">
- <desc>This event is triggered when a tab is disabled.</desc>
+ <event name="load" type="tabsload">
+ <desc>Triggered after a remote tab has been loaded.</desc>
<argument name="event" type="Event">
<desc></desc>
</argument>
<argument name="ui" type="Object">
<desc></desc>
+ <property name="tab"></property>
+ <property name="panel"></property>
</argument>
</event>
-
</events>
<methods>
<method name="disable">

0 comments on commit 7dbf536

Please sign in to comment.
Something went wrong with that request. Please try again.