neo.mjs 4.3.2 → 4.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -180,7 +180,7 @@ class MainContainer extends ConfigurationViewport {
|
|
180
180
|
},
|
181
181
|
|
182
182
|
items: [{
|
183
|
-
tabButtonConfig: {iconCls: 'fa fa-home', text: 'Tab 1'},
|
183
|
+
tabButtonConfig: {iconCls: 'fa fa-home', text: 'Tab 1', flag: 'tab1',},
|
184
184
|
vdom : {innerHTML: 'Tab 1 Content'}
|
185
185
|
}, {
|
186
186
|
tabButtonConfig: {iconCls: 'fa fa-play-circle', text: 'Tab 2'},
|
@@ -215,7 +215,14 @@ class MainContainer extends ConfigurationViewport {
|
|
215
215
|
* @returns {Neo.tab.header.Button}
|
216
216
|
*/
|
217
217
|
getFirstTabHeader() {
|
218
|
-
|
218
|
+
let tabHeaders = this.exampleComponent.getTabBar().items,
|
219
|
+
item
|
220
|
+
|
221
|
+
for (item of tabHeaders) {
|
222
|
+
if (item.flag === 'tab1') {
|
223
|
+
return item;
|
224
|
+
}
|
225
|
+
}
|
219
226
|
}
|
220
227
|
|
221
228
|
/**
|
@@ -242,7 +249,7 @@ class MainContainer extends ConfigurationViewport {
|
|
242
249
|
* @param {Object} opts
|
243
250
|
*/
|
244
251
|
onFirstTabHeaderConfigChange(config, opts) {
|
245
|
-
this.
|
252
|
+
this.getFirstTabHeader()[config] = opts.value;
|
246
253
|
}
|
247
254
|
|
248
255
|
/**
|