Questions tagged [lightning-tab]

A single tab that is nested in a lightning:tabset component. Currently in Beta (Winter 2018). This component inherits styling from tabs in the Lightning Design System.

Filter by
Sorted by
Tagged with
0 votes
0 answers
56 views

How to handle unsaved changes for lightning:tabset navigation?

problem: I am trying to warn the user of unsaved changes when they click on a lightning:tab within my custom application. core asks: Can I use unsavedChanges with lightning:tabset interactions? Is ...
user avatar
  • 119
0 votes
1 answer
434 views

LWC - Refresh contents inside a single <lightning-tab>

I have a component (container) with a lightning-tabset with a single lightning-tab. Inside the tab is a component (dataComponent) which pulls "Item" records via Apex and assigns them to a ...
user avatar
0 votes
1 answer
76 views

Clicking on the tab to navigate to salesforce pages

I have a lwc component with the vertical tabs as below. On click of each of these tabs, I want to render/navigate to the specific salesforce page. Example to the create account. I am trying below , ...
user avatar
1 vote
1 answer
52 views

How get lightning-tree to render separate component instance per each line

I have an application that utilises mix of nested tabsets and trees - see this playground: https://webcomponents.dev/edit/vXwtMddn7CcREzy4KXK4 I'd like lightning-tree to behave more like lightning-...
user avatar
  • 4,479
0 votes
0 answers
58 views

Unable to display Loader when changing custom tabs in Salesforce lightning page

I have two lightning tabs in a lightning component. When changing from one tab to another it takes time to load the data in the second tab. During this time, I am trying to display a spinner/loading ...
user avatar
-1 votes
2 answers
297 views

Keep selected rows persistent in lightning datatable between two tabs

I have 2 lightning tabs, each of them have a lightning data table in it. 1.The first tab displays a search filter and displays options accordingly 2.Each tab has a checkbox and you can select the ...
user avatar
  • 37
1 vote
2 answers
1k views

How to navigate to Custom Lightning Tab (having lwc) through lightning button having recordId in parameter? [duplicate]

I am trying to navigate to lightning tab which displays a lwc. I have a custom object and in lightning I have created one button and I am passing /lightning/n/ComponentTab?id={!record.Id} this in url ...
user avatar
1 vote
1 answer
953 views

Problem with passing parameter through URL to an LWC present inside a lightning tab

I have a detail page button on Account Detail page. I wish to open an LWC on clicking the button. The button opens a lightning tab using URL and passes a parameter along with the URL. I have an LWC on ...
user avatar
  • 1,014
1 vote
1 answer
2k views

Styling an LWC component with a lightning-tab to use the slds-has-success style

I have a LWC component that includes a set of tabs using the standard "lightning-tabset" and "lightning-tab" metaphor. When the actions in a specific tab have been completed, I ...
user avatar
  • 4,956
0 votes
1 answer
2k views

Control Lightning page tab visibility based on profile

I have added a new component tab named 'Level' on the lightning page. But i want this tab to be visible only to one specific profile. Is there a workaround to implement this???
user avatar
  • 49
0 votes
1 answer
878 views

Change background color of lightning:tab on load based on records size

I am trying to change background color of lightning:tab based on controller.js logic. But i am unable to do that. If the record size is zero, then want to add background color as Yellow. <aura:...
user avatar
  • 17
0 votes
0 answers
585 views

Lightning icon in lightning tab

I am trying to add an icon in tabs Labels of a lightning:tabset. <lightning:tabset > <lightning:tab > <aura:set attribute="label" > ...
user avatar
  • 433
-3 votes
1 answer
219 views

How to Display Accounts of Logged In user on clicking Accounts Tab? [closed]

How to Display Accounts of Logged In user on clicking Accounts Tab using Lightning Aura Component instead of the Existing Account List? How to over ride that tab page in Lightning.
user avatar
  • 19
0 votes
0 answers
1k views

LWC lightning-tab content not getting refresh on UI

On child Component if I update a value of any property, it gets refreshed on first tab but second tab is content is showing the old values only while property is already marked @track (same property ...
user avatar
0 votes
2 answers
2k views

lightning-tab align align center

I have only two tabs in lightning-tabset. And its align left. I need to have it in center. I tried padding-left: 200px; on ".slds-tabs" but nothing seems to be working. It works when i change through ...
user avatar
  • 41
3 votes
1 answer
6k views

Lightning Tabset tab change callback (LWC)

I am looking to track when the tabs are changed using the lightning-tabset component. The aura version used to have the onselect callback, but there is no equivalent in LWC. Do I have to recreate my ...
user avatar
7 votes
4 answers
11k views

Lightning Web Components and Change the Focused Tab in a Tabset with Javascript

In Lightning Web Components (lwc), not Aura, a lightning-tabset has an active-value-tab attribute. How do I change the tab in focus. In a two tab (lightning-tab) based lightning-tabset, the main (...
user avatar
  • 71
0 votes
1 answer
1k views

Refresh lightning:tab on change

I Built a lightning component which is used in opportunity layout. This component used some child component as lightning tab. The problem is when I edit and change some value in first tab is not ...
user avatar
0 votes
1 answer
580 views

Unable to Change/Add CSS in lightning:tab

Trying to add css class in lightning:tab, but always getting the aura:id value as undefind, I am trying to load my third tab as red in color onload of the component. here is the component <...
user avatar
0 votes
1 answer
3k views

how to refresh the source tab when the current tab is closed

I have a button "Create Activity" in a lightning component (say LC1) on the case lightning record page. When I click that button, an another lightning component (say LC2) opens as a sub tab with some ...
user avatar
0 votes
2 answers
394 views

Can we open an Lightning Component as a Tab within Lightning UI?

For Lightning console app, we can open a lightning component in a new Tab using lightning:workspaceApi. Can we avail the same functionality without Lightning Console app?
user avatar
1 vote
1 answer
452 views

Raise an onblur event in lightning:tab

We are creating tabs in a tabset dynamically. We need to save a record when a tab loses focus. For some reason, the onblur event is not raised. onactive works fine, but we already lost the focus of ...
user avatar
1 vote
1 answer
3k views

How to change Lightning:Tab label dynamically?

I want to change label for tab dynamically, but that's not working. Please find the related code below: Component <lightning:tab label="test1" id="tabId"> JS Controller component.find("tabId"...
user avatar
0 votes
1 answer
593 views

Lighting:tabset rendering tabs in "more" drop down when tabs are populated dynamically even though it has enough space to display all tabs

My expected result should be, all tabs display in one line with out "more" option by using dynamic code. When i tried dynamic code, Tabset displays only 3 names and rest of them in more option as ...
user avatar
  • 5
0 votes
1 answer
2k views

I need to restrict access to users from seeing/using Lightning custom Tab

I need to restrict access to users from seeing/using Lightning custom Tab. Not all users should get access to it. I want to control this with a permission set and I Need to remove tab access from all ...
user avatar
  • 912
2 votes
1 answer
1k views

Can't dynamically change Label of lightning:tab?

I need to dynamically change the label of a lightning:tab -- without reloading the entire tab. I thought I could do it with normal data binding, but it's not working. <aura:attribute name="tabName"...
user avatar
1 vote
0 answers
593 views

Opening a Lightning Community page with Lightning:tabset and Tabs

I would like to place a Lightning:Tabset and Tab component on several pages of a Lightning Community and open each page with the Tabs. The reason is that the current standard Tabs component will not ...
user avatar
1 vote
1 answer
225 views

Highlight href Lightning Community page in a Lightning Tab

I am trying to add a Lightning Tab component to several custom Lightning Community pages and have the corresponding tab highlighted for the page it is on. Example: If I I am on the Home page I want ...
user avatar
0 votes
2 answers
1k views

Put related list in lightning tab

I have a lightning record detail page. I have some related lists. What I would like to understand is if I can put one of the related lists under the activity tab. Attached image.
user avatar
  • 1,093
1 vote
2 answers
909 views

How to present an icon that has a background in a lightning:tab label?

This component markup: <lightning:tab aura:id="tab" title="{# 'New or Existing ' + v.tab.label }"> <aura:set attribute="label"> <lightning:icon iconName="{# v.tab.iconName ...
user avatar
  • 130k
3 votes
1 answer
891 views

Lightning:tab accesskey and tabindex not working

Lightning:tab (beta) has accesskey and tabindex attributes, however it seems to be not working properly. The tabindex tag doesn't show the correct index and the accesskey is not available when ...
user avatar
0 votes
1 answer
3k views

Need to make second lightning:tab visible on button click

I am currently developing a lightning component in which I am using lightning:tabset.Within this tabset, there are two lightning:tab being used in it.By default, when the component loads, the first ...
user avatar
  • 640
3 votes
0 answers
407 views

Has anyone else seen the issue of Lightning Component, if updated to version 41.0, changes the Component Label by appending namespace

No COMPONENT named markup://namespace:namespace_MyComponent found This error pop up after I updated my Lightning Component to API version 41.0, and the error comes when the component has a dedicated ...
user avatar
  • 5,606