I am trying to create a dynamic tabbed Interface. I saw Supporting multiple simultaneous "screens" in dynamic Tabs inside one Ember application
So far, I am able to create dynamic tabs. When a link with openTab=true
is clicked it opens a tab.
In order to do that. I have created a Service which handles the tabs, A component which renders the tab in the application and a Link openers which opens the Ember.LinkComponent
and customize the click events.
The code can be found here GitHub - aalasolutions-zz/ember-tabbed-interface: A tabbed Interface application. Might convert it to addon. and demo on http://aalasolutions.com/ember/tab/
If a tab is opened, and a link inside that tab is not marked to open the tab, it will change the tab title and also update the route. So next time when some one opens that tab. It will take user to proper route.
I am having following problems right now
- If a link have openTab, I have used ‘Title’ to use in the tabs. I want it to be dynamic so any yield content like
{{#link-to route}}YIELD{{/link-to}}
can be used as tab title -
route.transitionTo('route')
will change the route in history, but tab title and tab events are not updated. I tried to customized theRoute
by reopening it but it didnt worked for me. - Any items filled in the forms are lost.
If I am able to fix these issues. I would like to make this a an addon so any one can use it.