neo.mjs 4.3.2 → 4.3.3

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
- return this.exampleComponent.getTabBar().items[0];
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "4.3.2",
3
+ "version": "4.3.3",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {