question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hidden tab attribute for ion-tab elements

See original GitHub issue

This 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:closed
  • Created 9 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
kyr0commented, Jun 26, 2017

@MrFragStealer Your solution works, but isn’t very dynamic or programmatically controllable. I think, this Directive is cleaner:

TabHiddenDirective

1reaction
calendeecommented, Jun 27, 2014

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 :

  • Always show the tab bar
  • Hide content from the user
  • Display that content when I want to & keep the tab bar visible at all times

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:

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found