[Tabset] Nb-tabs: conditional switching
See original GitHub issueI have an nb-tabs with multiple nb-tabs the switching is working fine but I want a next button which should be able to direct me to the next tab…I don’t know how to implement this .kindly help
Issue type
I’m submitting a … (check one with “x”)
- bug report
- feature request
Issue description
Current behavior:
Expected behavior:
Steps to reproduce:
Related code:
insert short code snippets here
Other information:
npm, node, OS, Browser
<!--
Node, npm: `node --version` and `npm --version`
OS: Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
Browser: Chrome/Safari/Firefox/etc?
-->
Angular, Nebular
<!--
Check your `package-lock.json` or locate a `package.json` in the `node_modules` folder.
-->
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top Results From Across the Web
Keeping Lightning:Tabset from switching conditionally
What would be the best way to handle stop the switch from taking place? Can you share a little bit of code so...
Read more >Make tab switching conditional - reactjs - Stack Overflow
I have a basic TAB interface and was wondering if there is a way upon tab click, to check a condition ...
Read more >Tabs Angular UI Component - Nebular - GitHub Pages
Customizable Angular UI Library based on Eva Design System with 40+ UI components, 4 visual themes, Auth and Security modules.
Read more >Conditional Panel based on Active tab - Google Groups
I want to change the selectInputs based on the Active tab and. looking at the tabsetPanel.Rd code it looks as though this should...
Read more >How to change tabs conditionally while using Angular Material ...
Recently while using the Angular material tabs I was faced with the challenge of changing the tabs based on a certain condition.
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 FreeTop 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
Top GitHub Comments
Hi @pjyoti1235, you can track the tab activation using
changeTab
and add there some logic to keep it in sync with your custom behavior.Hi @pjyoti1235, I believe you just need an array of your tabs, then generate the tabs based on that array and also have an
active
attribute within your data. So that you can change theactive
state and it will automatically change the active tab in your tabset: in your component:Then
on click
on yournext
button you can change which tab is active. Hope this helps.