You need to sign in to do that
Don't have an account?

Switching of tabs in Salesforce Lightning
Hi ,
Based on my requiremnets i have created a single compenent in which i am showing the details.On page launch it will show a particular tab for instance the Channel tab in this case but on click of other tabs like Overview or Team Members ,it is suppose to show the tab specific detail on the same page but it is not working as intended .I have placed the tab specific details in <div> tag but still on click of a tab its not showing the details.I also want the selected tab to be highlighted with the same background.I would like to have a solution on this issue.Please help on this.I have attached the screenshot .Please refer it .Thanks in advance.
Feel free to ask any qusetion sif you have any doubt.
Based on my requiremnets i have created a single compenent in which i am showing the details.On page launch it will show a particular tab for instance the Channel tab in this case but on click of other tabs like Overview or Team Members ,it is suppose to show the tab specific detail on the same page but it is not working as intended .I have placed the tab specific details in <div> tag but still on click of a tab its not showing the details.I also want the selected tab to be highlighted with the same background.I would like to have a solution on this issue.Please help on this.I have attached the screenshot .Please refer it .Thanks in advance.
Feel free to ask any qusetion sif you have any doubt.
Are yu using the sample code available in getslds.com??
Basically in SLDS by deafult Tabs are not in working condition because they dont have any scripting done, it is just UI framework.
You have to utilize nested component architect and component level event framework to make Tabs working.
1. Create component TabComponent TabComponentController.js
TabComponentHelper
2. Component level event - SettingSelectedTab:
3. Finally create component which contains the Tabs: TabContainer.cmp
Let me know if any issues.