Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
This tag is for questions related to JavaScript, CSS, or Markup when used in the Lightning Web Component (LWC) programming model, or for questions of interoperability between LWC and the original Aura-based lightning components.
4
votes
2
answers
2k
views
Give Lightning Web Component a Prettier Name
How do I give my lightning web component a better name than simply 'helloWorld' or 'createNewCase' in the Custom section of the Lightning App Builder when published? I want something like 'Hello Worl …
0
votes
1
answer
1k
views
Dirty Object - Refresh From Server
Context - I am using an LWC Datatable to visualize data, which has a 'Modify' action that loads the row into a lightning-record-edit-form dynamically (when clicked). After modifying the data, saving …
0
votes
Accepted
Dirty Object - Refresh From Server
I ended up writing custom Apex and stripping out the submit button.
1
vote
1
answer
4k
views
Lightning-Record-Edit-Form: Halt Form Submission
In JavaScript (jQuery for example), we can return false to halt the form submission from happening under specific condition(s). I tried doing this in my Lightning Web Component in the method tied the …
1
vote
1
answer
2k
views
Submit Only 1 of Multiple Lightning-Record-Edit-Form Elements
This should be a pretty simple answer, but I can't seem to find anything out there.
I have two lightning-record-edit-form elements inside of the same template element. Using the QuerySelector or by a …
6
votes
Accepted
LWC: Adjust Width of Lightning-Button
After looking a little further into accomplishing what I'm asking, and reading up on the Lightning Design System, I figured out that you can use a regular button tag to accomplish what I'm trying to d …
1
vote
1
answer
5k
views
lightning-record-edit-form: Not Refreshing - Caching Issue
Problem - I have a DataTable with a Modify action that shows a lightning-record-edit-form when clicked. The user updates the lightning-record-edit-form and clicks the Submit button. The data is succ …
0
votes
1
answer
16k
views
Lightning Web Component: Navigation on Button-Click
I am attempting to navigate when a button-click occurs in lightning. Nothing happens when I click the button. Any thoughts on how to make this work? Code sample included:
import { LightningElement …
5
votes
5
answers
30k
views
LWC: Adjust Width of Lightning-Button
Given the following:
<div style="display:inline-block">
<lightning-button style="..." class="..." onclick={...} label="..."></lightning-button>
</div>
How can I adjust the width of the Lighting …
1
vote
1
answer
1k
views
Action Menu Getting Partially Cut Off
As seen in the two images above, I have an LWC DataTable with row actions that are being partially cut off (both upward and downward). I have tried the following:
Ligntning datatables actions menu …
0
votes
1
answer
454
views
Lightning Web Component - Navigate With Relationship
Is it possible to use NavigationMixin.Navigate to navigate to a new Case and retain the relationship to the current Account? I have a lightning component with a navigation button that uses the follow …
0
votes
Accepted
Prevent Lightning Data Service Caching - <lightning-record-edit-form>
Not invalidating the cache ended up being a known bug per salesforce support request. I had to fall back to Apex. My code looks like:
import LookupIt from
'@salesforce/apex/CaseLookupController.Lo …
0
votes
1
answer
312
views
Populate Lightning-DataTable With Case Data
I am trying to populate a Lightning Web Component that I put together with particular Case fields. No matter what I try, I can't get any data into my Lightning-DataTable. Does anyone know how to do …
0
votes
1
answer
1k
views
Prevent Lightning Data Service Caching - <lightning-record-edit-form>
Context
I have a custom Lightning Web Component that allows modification of multiple records inside of modal. Once a record is updated, I reload that same record-id, but the old data shows up instea …
1
vote
2
answers
3k
views
NavigationMixin.Navigate - Navigate and Set Case Values
Context: Using a lightning web component, I am trying to navigate from the Account page to the Case (New) page/dialog and set the new Case subject dynamically upon arrival. I have managed to make the …