Hidden tab attribute for ion-tab elements
See original GitHub issueThis will help people able to implement both side-menu and ion-tabs at once.
In the file: ** js / angular / directive / tab.js **
Change:
tabsCtrl.$tabsElement.append($compile(tabNavElement)($scope));
to
if ($attr.hidden !== 'true') { tabsCtrl.$tabsElement.append($compile(tabNavElement)($scope)); }
This allow a hidden=“true” attribute in the ion-tab element. It will hide the button but view/controller will continue to works as normal. We can access it by route or other mean like a normal tab.
I hope we can implement this if there are no problem 😃
Issue Analytics
- State:
- Created 9 years ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Hidden tab attribute for ion-tab elements · Issue #1666 - GitHub
This allow a hidden="true" attribute in the ion-tab element. It will hide the button but view/controller will continue to works as normal.
Read more >Best way to add a ion-view to ion-tabs without having a tab
The idea is when you first open the view with the ion tabs, you see a view that has no ... Issue: Hidden...
Read more >Hide Tabs-Highlight on specific tab Ionic 3 - Stack Overflow
The tabsHighlight attribute is set to true and that works perfect. However due to styling I want the little "highlight-strip" to disappear on...
Read more >Ionic 4 — Hiding & Showing Tabs on certain pages
In ionic 3 we could add an attribute to certain tabs called tabsHideOnSubPages which allowed us to do exactly that — hide the...
Read more >Ionic - Javascript Tabs - Tutorialspoint
Ionic - Javascript Tabs, Tabs are a useful pattern for any navigation type or ... by using ion-tabs as a container element and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@MrFragStealer Your solution works, but isn’t very dynamic or programmatically controllable. I think, this Directive is cleaner:
TabHiddenDirective
See also : Issue #1163
This is a pretty common request. For example, I want the GUI to ALWAYS show the tab bar. However, I have a view that I don’t want accessible via the tab bar. Within the GUI, I want to be able to show that view.
A hidden tab allows me to :
The alternative of a different state outside the “tab.” means a navigation event happens, taking the user away from the tabs, and now, they have to use a back button to get back inside of just tapping a tab.
A few other examples of people requesting this: