Questions tagged [lightning-base-component]
The lightning-base-component tag has no usage guidance.
21
questions
10
votes
3
answers
1k
views
How can I test that my component, which implements the standard modal components, is working properly?
Since the update to API 56.0 (Winter '23) Salesforce introduced a new set of components to help developers create modals with the Lightning Experience format in an easier way. The components added ...
0
votes
1
answer
859
views
lwc input rich text strange behaviour / error
I am using the lightning-input-rich-text base component and as soon as i mouse click on the body portion of it i get the following error underneath - irrespective whether there is some value or not.
...
3
votes
0
answers
136
views
LWC-base-components-recipes issue, Summer 20' release, assert.js
I am using textarea base component, this had to go with lots of other dependencies to my org.
Unfortunately after summer 20' release I had to comment out code in assert.js today:
export function ...
4
votes
1
answer
789
views
Lightning Map Marker Color
I'm using lightning:map base component. Is there anyway to make this marker blue?
11
votes
2
answers
1k
views
Recommended approach when LWC Base component is missing feature
I have a nice LWC component which is using lightning-datatable but I also need InlineEdit for those two types which are currently not supported.
Lookup Field
Picklist Field
Option A: I could use the ...
2
votes
4
answers
3k
views
Adjust and fix appearance of lightning-map LWC component
In my Lightning Web Component, I am using the <lightning-map> Base Component to display a Google map.
I have a few display issues and things I would like to adjust, but It doesn’t work as ...
4
votes
1
answer
2k
views
How to make Button on LWC card look like native UI
I have a LWC component that (tries) to visually mimic the native Task List using lightning-card and lightning-button-menu but the New Button just looks different regarding the padding and size of the ...
2
votes
1
answer
7k
views
Variant label-hidden with Lightning Input Field and LWC not hiding HelpText Icon? [duplicate]
I've seen various posts about how you cab hide stray elements like this with aura components, and I think the answer with LWC is always 'shadow-dom' as described here but is there really no way to ...
1
vote
1
answer
1k
views
Multiple calls to lightning:quickActionAPI getAvailableActionFields() fails
I get an error when doing multiple calls to getAvailableActionFields in a Promise.all().
The markup:
<aura:component implements="force:hasRecordId">
<lightning:quickActionAPI aura:id="...
6
votes
2
answers
636
views
Will Lightning Base Components fully replace SLDS?
I've noticed that certain Lightning UI features have equivalents across Base/UI Components and SLDS, such as modals. But, some don't. I haven't seen a base-component equivalent of Checkbox Buttons, ...
4
votes
1
answer
3k
views
Are Lookup Filters supported in Custom Lightning Components?
So, there are two ways to get Salesorce Standard Lookup filed in Lightning components: force:inputField and lightning:inputField. However, no matter what I do, I can not get lookup filters to work. ...
2
votes
1
answer
2k
views
Simulate Record links (including compact layout hover) in Lightning component
In Visualforce you could add an apex:outputLink to a page and had a link that showed a Mini layout on Hover.
I want the exact same thing in a custom Lightning component. Add a record link and have a ...
4
votes
3
answers
6k
views
Hide remove X on lightning:pill/pillcontainer
Is there any way to disable or hide (even just by using CSS) the remove X from lightning:pill?
The documentation seems to indicated that as it says "by default":
By default, pills are rendered ...
2
votes
2
answers
12k
views
How to reset attribute value to null in Lightning Component?
I'm trying to reset an attribute value to null. But when I execute reset button call, the value in the textbox is cleared BUT it does not get cleared from display.
Here is a sample code.
TestCmp
&...
2
votes
2
answers
22k
views
Line breaks in Lightning component HTML source code put space around the element
While tinkering with Lightning base components, I realized that a linebreak - which may seem to have no effect at all - can actually have a visual impact. I don't have a strong HTML background so I'm ...
6
votes
1
answer
4k
views
Passing user input from `lightning:overlayLibrary` back to parent
I am using lightning:overlayLibrary to collect input from the user which will then be used in the parent component. The modal is simple: 1 lightning:select` in the body and a footer with "Select" ...
2
votes
2
answers
1k
views
Lightning Data Table Base Component Winter 18' - navigate to Sobject action
How do you set an action on a column to Navigate to Sobject record?
Or when the name of the record is clicked fire an action.
Doesn't appear you can do it with the base component.
<lightning:...
5
votes
3
answers
565
views
Lightning Locker proxying simple strings too?
I'm getting some strange results trying to do a simple demo of lightning:radioGroup using aura:if to conditionally render components. I've added a controller method to show the weirdness.
Component:
...
14
votes
5
answers
17k
views
How to close lightning:overlayLibrary custom modal?
The documentation shows how to close an overlay immediately after showing the modal, however, this is not very useful for real-life situations.
I have a component which has a lightning:...
0
votes
1
answer
710
views
Conditional fields in force:recordData
The new force:recordData component is awesome since it allows us to retrieve sObjects without a direct apex server call. However as a managed package provider, we have a very common situation where we ...
1
vote
1
answer
220
views
Bug in Lightning Button Base Component with `afterRender` in Spring 17
Having an afterRender in a Lightning Component makes the Icon not show in Lightning Base Component <lightning:button />
Here is a quick Test App:
TestApp.app
<aura:application extends="...