Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

use outlets in a tabpanel #29

Open
iirving opened this issue Oct 31, 2016 · 2 comments
Open

use outlets in a tabpanel #29

iirving opened this issue Oct 31, 2016 · 2 comments

Comments

@iirving
Copy link

iirving commented Oct 31, 2016

does ivy-tabs support using {{outlets}} within a tabpanel?

something like :

{{#tabs.tabpanel "TabA"}}
{{outlets "taba"}}
{{/tabs.tabpanel}}

probably with the (nested) route for "taba" doing :

renderTemplate: function() {
this.render({ outlet: 'taba' });
},

or is that outside the functionally of the add-on?

@nbibler
Copy link
Member

nbibler commented Mar 27, 2018

I can't say that I've tried to use the scenario you're describing. In our cases, the tabpanel content is local, model content. I'm guessing by using outlets you're trying to bind it more closely to the router and use the route models somehow as the tab content. In that case, it sounds less like a tab system and more like traditional site navigation.

@iirving
Copy link
Author

iirving commented Mar 30, 2018

yes! it was being used as navigation (routing nested models), rather than presenting sub-sections of the current model.

i guess that you could say the ivy-tabs is more presentational than navigational.

I ended up making my own tab component for that functionally, rather than Ivy-tabs otherwise more functional component.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants