I am trying to use the Bootstap.Tabs component to create bootstrap tabs.
I declared tabs as follows:
{{view Bootstrap.Tabs
contentBinding="App.tabsContent"
selectionBinding="App.selection"}}
And I use the following code to set the content for tabs.
App.ready = function() {
App.tabsContent= Ember.A([{value: "cred_app.associate_clients", title: "Associate clients"}, {value: "cred_app.facilities", title: "Facilities"}]);
};
Using this, I can successfully complete the boot tab .. and the route name will appear in App.selection.
I just don’t understand how to make links work so that the controller jumps to the route. I would also like to get an active tab to apply the correct css to it so that the tabs display which route is currently being displayed.
UPDATE:
I implemented this using a more simplified approach:
<ul class='nav-tabs'>
{{#linkTo 'cred_app.associate_clients' model tagName='li' href=false}}
{{#linkTo 'cred_app.associate_clients' model}}Client Hierachy{{/linkTo}}
{{/linkTo}}
</ul>
source
share