Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lightning-web-components]

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.

1
vote
0answers
8 views

I am clicking delete record and record are getting deleted but it does not refresh the table in LWC

import { LightningElement, track,wire,api } from 'lwc'; import getContactList from '@salesforce/apex/ContactController.getContactList'; import deleteContacts from '@salesforce/apex/ContactController....
3
votes
1answer
49 views

Target inner elements of standard Lightning Web Components with CSS

Say we have a LWC with the following template in a component named example: <template> <lightning-textarea class="test"></lightning-textarea> </template> And some css to ...
5
votes
1answer
52 views

Can we specify a minimum height for a lightning:datatable/lightning-datatable?

Problem lightning:datatable (rendered as a lightning-datatable) places itself in a wrapper that is only exactly as big as it needs to be. If you click on a header-level action in a table with no rows,...
10
votes
1answer
76 views

Will LightningComponentBundle and LightningComponentResource mapped into the database like AuraDefinitionBundle and AuraDefinition

I'm checking this on a Spring'19 v45 Sandbox in Execute Anonymous: [ select Id from AuraDefinitionBundle ] // ==> works fine! [ select Id from AuraDefinition ] // ==> flawless!...
7
votes
1answer
54 views

Canvas App (or equivalent) for Lightning Web Components

We are currently using the force:canvasApp lightning component to embed an external site securely into Salesforce. The Spring '19 release is introducing Lightning Web Components as the future of ...
0
votes
0answers
24 views

Lightning Web Components: .eslintrc.json and jsconfig.json missing in lwc folder

I am trying to implement this(https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/create-a-hello-world-lightning-web-component) with VS code. However, I am ...
0
votes
0answers
23 views

Lightning Web Component: how can I use Get Child Records UI API?

According to documentation, Lightning Data Services is built on top of UI API. So my question is: How I do to user Get Child Records UI API?
7
votes
1answer
73 views

Can LWC be used with other JS frameworks like ReactJS on VF Pages?

Currently the applications are built in ReactJS on top of VF Page. As part of enhancement, new components need to be built. Also they need to communicate with each other. I am planning to have LWC ...
1
vote
1answer
20 views

How to trigger analyticsInteraction aura component from Lightning web components?

How to trigger analyticsInteraction aura component from Lightning web components? Below is the code to trigger analyticsInteraction using aura component var analyticsInteraction = $A.get("e....
3
votes
0answers
43 views

Property value is not refreshing on Template when its Non-Primitive type

I am trying to update value of property in Parent Component which is pass in Child component. But after update value is reflecting in child component'c class (.js) but not in view (.html) Is it ...
0
votes
1answer
23 views

how to get Personal Access Token from my integrated application LWC. I am using js only [duplicate]

I am using LWC for integration my application. I need to get the Personal Access Token at runtime. Is that possible to get? Presently, I hardcode Personal Access Token in my LWC application. like ...
0
votes
1answer
27 views

Unexpected file found in package directory: F:\Mine\SalesForce\Salesforce CLI\HelloWorldLightningWebComponent\force-app\main\default\engine.d.ts

This error Unexpected file found in package directory: F:\Mine\SalesForce\Salesforce CLI\HelloWorldLightningWebComponent\force-app\main\default\engine.d.ts. shown up when I'm trying to run command ...
5
votes
0answers
89 views

Html injections for dependent picklists used in lightning web components in tables with edit

I am trying to build a dependent picklist dynamically within a table using Lightning Web component based on what is selected in the controlling picklist field. Html injections were possible in Aura ...
4
votes
1answer
47 views

Can we access the key attribute when handling an event from a foreach template

// TEMPLATE <template for:each={itemList} for:item="item"> <li key={item} onclick={handleItemClicked}>{item}</li> </template> // JS itemList = ['A','B','C']; ...
1
vote
1answer
61 views

Can we do Integration of Asana to lightning Salesforce web Component? [closed]

I am doing work on Javascript using Salesforce lightning Web Component. I want to know how I integrate Asana with these components. Is that possible? Actually, I want to use the only javascript to do ...
1
vote
1answer
64 views

not able to push lightning-web-component in salesforce

I am using this command to push component to salesforce sfdx force:source:push but nothing happens this issue comes. Starting SFDX: Push Source to Default Scratch Org 14:12:52.362 sfdx force:source:...
2
votes
1answer
74 views

Lightning Web Components Easy Spaces sample application LWC component code

The screenshot below shows a comparison of the \es-base-code\main\default\ source code structures for the Salesforce sample application Easy Spaces - Lightning version v. Lightning Web Components ...
6
votes
1answer
147 views

Do we have alternative of force:hasRecordId for LWC

In looking at this page of the LWC developer guide, I have not found any details around this. Clearly to get an LWC working for a record page you can use target for RecordPage as below, making this ...
4
votes
1answer
110 views

Not able to render dynamic Lightning Web Component

I am refering Play Ground to render dynamic component in LWC. But it is giving error createElement is not defined. Have any one idea how to render dynamic component. Alternative of createComponent ...
3
votes
2answers
289 views

Lightning Web Component — Lightning bundles must have a parent folder named ! 'lightningcomponents'

I am trying to create Lightning web component and keep getting this message, but could not figure out the issue. What does it say? Starting SFDX: Create Lightning Web Component 23:59:38.741 sfdx ...
1
vote
2answers
81 views

Lightning Web Components development

I just went thru the Trailhead for Lightning Web Components. It appears that to develop, you need to use Visual Studio Code and then use the SFDC CLI tool to deploy. Is there any way to develop ...
3
votes
1answer
411 views

Why Lightning Web Component [duplicate]

Why Salesforce has introduced new feature called Lightning Web Component (LWC)? What is the benefit over Lightning Component? I have went through various blogs to find out the actual need of LWC over ...
2
votes
1answer
85 views

Experimental support for decorators is a feature that is subject to change in a future release

I've error [js] Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning. when I try to ...
3
votes
1answer
120 views

LWC VisualCode DevHub command

Can someone please help me, I want to complete the lightening web components Trail in trailhead but i keep getting this error. I installed CLI and updated it to pre realese version I installed Visual ...
4
votes
1answer
146 views

Is it possible to deploy lightning web components to an org with an api version lower than 45?

I'd like to start developing LWCs in my dev sandbox, but it's current api version is 44. I get this error when trying to deploy my lwc. Starting SFDX: Deploy Source to Org 19:30:37.961 sfdx ...
11
votes
3answers
215 views

Expression Functions within Lightning Web Components

How can expression functions similar to Visualforce and Lightning Aura Components be achieved within lightning web components? For example, <template if:true={index % 5 == 0}><br></...
2
votes
3answers
66 views

How can I call @wire(getListUi) method on button click?

I'm trying to implement a refresh button in one of my components. I'm using the @wire decorator with getListUi to get a list of records for each of which I'm rendering a component. The @wire method ...
2
votes
1answer
76 views

What are these '@' symbol things in Web components [api, wire]?

While understanding code snippets provided by Salesforce. There are a few things which were confusing. Like what is @api, @wire. I googled for them, came to know they are called decorators. ...
6
votes
1answer
129 views

Lightning Web Component available in Community Builder

Well understand that LWC are supported within Community yet cannot find a way to get the component in the Builder. Any special configuration param to include somewhere like for LC where we were ...
0
votes
2answers
257 views

command 'sfdx.force.lightning.lwc.create' not found

I've this error when I tried to create a lightning web component also lwc wasn't updated automatically in force-app/main/default . I had to put it manually on it Could you advice what's wrong?
4
votes
2answers
318 views

Dynamic component creation in Lightning Web Components

Is there any way to create and add lightning web components dynamically in the component tree ? I mean the equivalent one in Aura is $A.createComponent(). The usual Web Components can be dynamically ...
1
vote
2answers
118 views

Unable to resolve c-hello-world from root/app while creating Hello World for LWC (Lightning Web Components)

I was trying to implement a basic hello world Lightning Web Component in the playground using this link in the component library - https://gs0.lightning.force.com/docs/component-library/documentation/...
11
votes
3answers
1k views

Lightning Web Components - Benefits and Support

Salesforce announced Lightning Web Components in Dec. 2018. In comparison to the existing Aura Framework: What are the benefits of using Lightning Web Components? / How much faster are they? Where ...
1
vote
1answer
43 views

How to set a public reactive property in the declared component during component construction

Pardon me for my dumb question. I'm reading about lwc properties and came across a statement. A component that declares a public reactive property can’t set the property value, except at component ...
5
votes
1answer
177 views

Understanding shadow dom in Lightning web components

I'm looking at the shadow Dom in the lwc developer guide and found below statements. Shadow DOM is a web standard. To make development easier for component authors, the Lightning Web Components ...
1
vote
2answers
499 views

Lightning web components issue with SFDX push and pull

I Create an sfdx scratch org using Quick Start: Lightning Web Components . I also created a sample hello world lightning web component and pushed it to the scratch org and everything works fine as I ...
9
votes
4answers
656 views

What is involved in moving over to Lightning Web Components?

I read: Aura Components, leveraging its own component model, templates, and modular development programming model. Lightning Web Components, built on top of the web standards breakthroughs of the ...
5
votes
2answers
112 views

Will Lightning Web Components be open sourced or available for external apps?

We prefer to use back-end APIs to connect to salesforce and write our own applications in .net and java. Will the Lightning Web Components be available for this use case?
5
votes
1answer
196 views

Locker service and lightning web components

Is there any documentation yet on how locker service fits in with lightning web components? If yes, What are the implications of locker service on lightning web components? What are locker service ...
6
votes
1answer
159 views

Automated testing of Lightning Web Components?

Personally, I struggled to get value out of the Lightning Testing Service and felt it was very limited compared to e.g. Angular Testing. Working for an ISV, automated testing is key to keeping ...
10
votes
3answers
803 views

Where is the Lightning Web Component developer guide?

Initially Lightning Web Components was announced with a blog post. There is also a trailhead project and sample apps. But I don't see anything in the developer documentation portal if I just want ...
6
votes
2answers
637 views

Lightning Web Component: A required metadata folder named “lwc” does not exist in this workspace

I am trying to perform this(https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/create-a-hello-world-lightning-web-component) with VS code and it is throwing ...
10
votes
3answers
631 views

Will Lightning Web Components have retrocompatibility?

I've just read here that Salesforce decide to change the framework used for Lightning Component. In according with this article, it seems very powerful under some aspects. In your opinion, the actual ...
28
votes
1answer
2k views

What are Lightning Web Components

Salesforce has just announced a new feature, Lightning Web Components. What is this? What does it have to do with Lightning Components and the Lightning Component Framework?