hawtio / hawtio-core-navigation

The main navigation component for hawtio
Apache License 2.0
1 stars 7 forks source link

Default tab selection is not happening #14

Open basheer-imaginea opened 8 years ago

basheer-imaginea commented 8 years ago

<li ng-class="{ active: item.isSelected() }" class="active">

active not getting added for default selection tab. it's getting added only when you click on any tab.

please provide the solution for this or show me some working example.

Thanks.

abkieling commented 8 years ago

@basheer-imaginea, when defining the defaultPage(), make sure you specify the isValid property and call the yes function. Here is an example where Test 5 is the default tab:

tabs.push(builder.create()
                  .id('test5')
                  .title( function() { return 'Test 5'; })
                  .href( function() { return '/many/5'; })
                  .defaultPage({
                    isValid: function(yes, no) { yes(); }
                  })
                  .build());
abkieling commented 7 years ago

@basheer-imaginea is this issue still happening?