projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1fd988d
)
Roo/bootstrap/TabPanel.js
author
Alan Knowles
<alan@roojs.com>
Thu, 5 Feb 2015 08:27:01 +0000
(16:27 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 5 Feb 2015 08:27:01 +0000
(16:27 +0800)
Roo/bootstrap/TabPanel.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/TabPanel.js
b/Roo/bootstrap/TabPanel.js
index
798f817
..
4f15844
100644
(file)
--- a/
Roo/bootstrap/TabPanel.js
+++ b/
Roo/bootstrap/TabPanel.js
@@
-22,7
+22,7
@@
Roo.bootstrap.TabPanel = function(config){
Roo.bootstrap.TabPanel.superclass.constructor.call(this, config);
Roo.bootstrap.TabPanel = function(config){
Roo.bootstrap.TabPanel.superclass.constructor.call(this, config);
-
this.addEvents({
+ this.addEvents({
/**
* @event changed
* Fires when the active status changes
/**
* @event changed
* Fires when the active status changes
@@
-30,8
+30,17
@@
Roo.bootstrap.TabPanel = function(config){
* @param {Boolean} state the new state
*/
* @param {Boolean} state the new state
*/
- 'changed': true
+ 'changed': true,
+ /**
+ * @event beforedeactivate
+ * Fires before a tab is de-activated - can be used to do validation on a form.
+ * @param {Roo.bootstrap.TabPanel} this
+ * @return {Boolean} false if there is an error
+
+ */
+ 'beforedeactivate': true
});
});
+
this.tabId = this.tabId || Roo.id();
};
this.tabId = this.tabId || Roo.id();
};