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
1 vote
1 answer
21 views

lightning-tab embedded LWC data table issue

I am working to embed an LWC into a lightning tab format on the Interaction__c record page I have custom components on. The HTML for the lightning tab: <lightning-tab label="Payment ...
ForrestFairway's user avatar
3 votes
2 answers
163 views

Is there a way to deploy a Lightning App in a managed package that would be visible to all users by default?

My second-generation managed package deploys metadata for a Lightning App (CustomApplication) that has a Lightning Tab (CustomTab) with a Lightning Web Component. It also deploys a PermissionSet which ...
nstuyvesant's user avatar
-1 votes
1 answer
167 views

Create a custom tab for my lwc in salesforce using coding (Apex/JS/html)

So i know the steps to create a custom tab in salesforce using the following instructions: Create a custom tab for the component. From Setup, enter Tabs in the Quick Find box, then select Tabs. Click ...
Komal Riaz's user avatar
0 votes
1 answer
337 views

Lightning tab with LWC name stuck in "Loading"

I created a lightning tab with a LWC and the name of the tab is stuck in "Loading.." in apps such as console, when I search about that, I saw that the most used way to correct this is put ...
Alexia's user avatar
  • 81
0 votes
0 answers
179 views

Hide Lwc Tab based on Metadata

I have a lwc component(called "Tab1") made as a lightning tab and have a custom metadata(called "Enable Tab1") in a different lightning page as a toggle. Then ,need to hide and ...
Basu's user avatar
  • 41
0 votes
1 answer
2k 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 ...
Adam Drissel's user avatar
0 votes
1 answer
294 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 , ...
Manish Anand's user avatar
1 vote
1 answer
162 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-...
dzh's user avatar
  • 4,106
-1 votes
2 answers
621 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 ...
Meena's user avatar
  • 57
1 vote
2 answers
4k 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 ...
abhi saxena's user avatar
1 vote
1 answer
3k 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 ...
Koustubh's user avatar
  • 1,143
1 vote
1 answer
3k 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 ...
JimRae's user avatar
  • 5,036
0 votes
1 answer
4k 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???
Shira's user avatar
  • 49
0 votes
1 answer
2k 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:...
Aryan's user avatar
  • 17
0 votes
0 answers
1k 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" > ...
Raphael D's user avatar
  • 574
-3 votes
1 answer
306 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.
Aditya's 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 ...
sunil gupta's user avatar
0 votes
2 answers
3k 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 ...
Manohar's user avatar
  • 51
4 votes
1 answer
8k 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 ...
BiscuitKnees's user avatar
9 votes
4 answers
22k 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 (...
William's user avatar
  • 91
0 votes
1 answer
2k 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 ...
Ajith Kumar's user avatar
0 votes
1 answer
670 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 <...
Abhi Tripathi's 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 ...
Seshu Paturu's user avatar
0 votes
2 answers
544 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?
Jyotirmay Paul's user avatar
1 vote
1 answer
522 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 ...
user1786037's 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"...
Sankalp Gupta's user avatar
0 votes
1 answer
855 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 ...
Alex's user avatar
  • 5
0 votes
1 answer
4k 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 ...
Sarvesh's user avatar
  • 998
2 votes
1 answer
2k 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"...
PatMcClellan__c's user avatar
1 vote
0 answers
728 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 ...
Matt Brown's user avatar
1 vote
1 answer
289 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 ...
Matt Brown's user avatar
1 vote
2 answers
2k 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.
Madhurima's user avatar
  • 1,285
1 vote
2 answers
1k 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 ...
Keith C's user avatar
  • 136k
3 votes
1 answer
1k 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 ...
Pablo Fischer's 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 ...
Abhijeet's user avatar
  • 650
3 votes
0 answers
448 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 ...
VarunC's user avatar
  • 5,940