File tree Expand file tree Collapse file tree 1 file changed +32
-3
lines changed
example/basic/com/basic/service Expand file tree Collapse file tree 1 file changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,45 @@ export default {
8
8
id : '1' ,
9
9
title : 'mock tab 1' ,
10
10
closable : true ,
11
- panelComponent : < MockPanel1 > </ MockPanel1 >
11
+ disable : false ,
12
+ panelComponent : MockPanel1 // or <MockPanel1></MockPanel1>
12
13
} , {
13
14
id : '2' ,
14
15
title : 'mock tab 2' ,
15
- iconClass : 'ui-icon ui-icon-seek-end' ,
16
+ tooltip : 'mock tab 2' ,
17
+ iconClass : 'css class for icon' ,
16
18
closable : true ,
17
19
panelComponent : < MockPanel2 > </ MockPanel2 >
18
20
} ] ,
19
21
selectedTabID : '1' ,
20
- onSelect : ( switchTabsId , api ) => {
22
+ onLoad : function ( ) {
23
+ const context = this ;
24
+ } ,
25
+ onInit : function ( ) {
26
+ const context = this ;
27
+ } ,
28
+ onChange : function ( { currentData, perviousData } ) {
29
+ const context = this ;
30
+ } ,
31
+ beforeSelect : function ( e , id ) {
32
+ const context = this ;
33
+ return true ;
34
+ } ,
35
+ onSelect : ( { currentSelectedTabId, perviousSelectedTabId } ) => {
36
+ const context = this ;
37
+ } ,
38
+ beforeClose : function ( e , id ) {
39
+ const context = this ;
40
+ return true ;
41
+ } ,
42
+ onClose : function ( closedTabsId ) {
43
+ const context = this ;
44
+ } ,
45
+ onOpen : function ( openeTabsId ) {
46
+ const context = this ;
47
+ } ,
48
+ onDestroy : function ( ) {
49
+ const context = this ;
21
50
}
22
51
} ;
23
52
}
You can’t perform that action at this time.
0 commit comments