Skip to main content

Questions tagged [web-components]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
78 views

value not passing from child to parent component

@api label; uniqueId; @track placeholder; connectedCallback() { // Increment the static variable to get a unique ID unkDateInputId += 1; // Set the unique ID property using the ...
blackFire's user avatar
1 vote
1 answer
330 views

Using External Custom Web Component in LWC

I wanted to know if it's possible to integrate an external standard web component in LWC. Like suppose I have mycomponent.min.js which exposes my-custom-component. And I want to use it in html as <...
user9158002's user avatar
2 votes
0 answers
246 views

How to make lightning-layout-item grow horizontally or vertically or both?

I'm trying to create a flexible layout using lightning-layout and lightning-layout-item base components in LWC. The screenshot of the basic idea is given below. Appreciate inputs on how can we achieve ...
Akshay Poddar's user avatar
1 vote
1 answer
320 views

Get picklist values on record type(not a default) without hard-coding of record type id and object have more than one record type in Salesforce

I have a scenario where i have LWC component A and in its html it uses LWC component b (In this LWC component i have built the picklist dependency + record type). So that in component A in HTML i ...
Ajay's user avatar
  • 45
0 votes
0 answers
29 views

how to manage translations in salesforce for the application running outside salesforce? [duplicate]

We are developing an application that will be deployed on a web platform.The backend data is stored in salesforce and what we would like to do is to support multi lingual app. Is there a way where the ...
sonasfdc's user avatar
1 vote
1 answer
2k views

WebComponents.dev for Lightning Web Components: How to?

We are now seeing the following message at the top of the Lightning Web Components Playground: Playground will be retired on February 1, 2021. All saved projects will be permanently deleted at that ...
Matthew Souther's user avatar
0 votes
1 answer
3k views

LWC is not working with non-admin profiles

I have created a web component to pre-populate child record fields from parent record, its working fine when i tested as a admin, but its not working when I logged in as other profiles, I'm not using ...
naresh's user avatar
  • 1
1 vote
2 answers
5k views

How to get unselected rows from Lightning Datatable?

I'm trying to get the list of selected rows with onrowselection event. <lightning-datatable key-field="index" ...
Pasan Eeriyagama's user avatar
2 votes
1 answer
548 views

Is it possible to export a Salesforce-hosted Lightning Web Component for consumption as a Micro Frontend?

A colleague was giving a very exciting presentation on Micro Frontends today. He explained that if you can import the web-components into your JavaScript, you could compose your UI using components ...
Brian Kessler's user avatar
2 votes
1 answer
10k views

How is the <template> tag used in lwc different from one used in web components?

According to usage of <template> in web components: The elements under template won't appear in your page until you grab a reference to it with JavaScript and then append it to the DOM For ...
Isha's user avatar
  • 163
0 votes
0 answers
302 views

In Salesforce LWC lightning-datatable unable find the current selected or un selected record

In Salesforce LWC lightning-datatable unable find the current selected or un selected record As per documentation "onrowselection" call back always giving records which is selected. I need to fetch ...
Salesforce Developer's user avatar
0 votes
1 answer
4k views

Sending Wrapper object to Apex from Javascript in LWC

I have a question regarding the operation of the wrappers classes in lwc. I have an apex method which has as an input parameter an object of the wrapper class. FIRST IMAGE: SECOND IMAGE: The ...
Diego Lucas Romero's user avatar
3 votes
1 answer
501 views

Pass data to web component (angular 6) inside LWC (Lightning Web Component)

I have Angular 8 app defined as web component and I have Lightning Web Component (LWC) app. Inside LWC I am trying to pass data into web component through the property of DOM element like this....
Dmitry Golofaev's user avatar
0 votes
2 answers
3k views

Cannot add a class to body tag in lwc

I am trying to add 'overflow: hidden !important' property in body tag of lightning page. For this, i did the following document.body.style.overflow = 'hidden !important' Unfortunately, it didnot ...
lambad's user avatar
  • 385
0 votes
0 answers
44 views

How to convert LWC pages into PDF format? [duplicate]

My current requirement is to convert LWC page into PDF format. I tried built in 're-render as PDF' option though VF page. But it does not look good & i am not able to add Graphs/Charts into it. ...
user avatar
5 votes
1 answer
3k views

When to use Slots vs Public Properties vs Getter Properties in LWC exactly?

I am learning LWC and I understood the concept of Slots & Public Properties. But I am not clear regarding when, in which conditions should we use Slots, Public Properties (@api) and Getter ...
user avatar
3 votes
1 answer
2k views

Lightning Web component and Aura component performance difference due to the change in architecture

I am new to salesforce lightning web component.I did some of the example and found that lightning web component is way more faster than Aura component. This is due to the web stack architecture of ...
Ranjit Mishra's user avatar
7 votes
1 answer
5k views

When can I extend custom component in LWC?

As a general implementation guidelines of LWC, we should be extending standard LWC elements. Examples are: export default class MyComponent extends LightningElement (Most used) export default class ...
salesforce-sas's user avatar