Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [slots]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
65 views

Custom slot's available in builder with default components assigned

I have custom lwc with slots available in builder. Into slot's I put some custom lwc and ootb components (e.g User Profile menu or Commerce navigation) The problem is when I try to change something ...
michal98kowalczyk's user avatar
0 votes
0 answers
174 views

Is it possible to create an lwc that other lwcs can be drag and dropped into?

I would like to create an LWC (lets call it the Parent LWC) that is usable within the Flow builder. When Parent LWC is dragged onto a Flow screen, I'd like for the user to be able to drag other Flow ...
CloudHugger's user avatar
  • 1,757
0 votes
1 answer
295 views

Passing markups in slots inside for:each loop in LWC?

In the following childComponent, data is prepared by processing the params public property. childComponent.html <template> <lightning-accordion active-section-name="" allow-...
sfdcnewbie's user avatar
0 votes
1 answer
671 views

How do I expand a table column that has a LWC Component inside

Trying to figure out a way of getting the expandable section below the main row - expand to be full width of the table. I am having issues with it just fitting within the first column. Are there ...
Darrell W's user avatar
3 votes
1 answer
575 views

Can you create a slot that moves in the DOM?

I have a generic component that renders a form in a slot. I want the layout of the component to be changeable. E.g. move the form from the right hand side of the screen to the top. The layout changes ...
Rob Baillie's user avatar
0 votes
1 answer
345 views

LWC Lightning-card slot alignment issue

It appears that I can't put a lightning-input in a slot. I would like the input and button to line up side by side on the right, preferably in line with the lightning-card title. Any ideas on how to ...
mackmama's user avatar
  • 707
1 vote
0 answers
76 views

Nested slot tags inside synthetic shadow

We try to test automatically our Sales Force application via Playwrigth.But to steer page components we'd like to fully understand synthetic Shadow polyfill. How it's possible to have 2 synthetic ...
Mariano López Cortés's user avatar
1 vote
1 answer
951 views

Pass Elements into Named Slots - Nothing Rendered

Problem Trying to build a reusable component that I can pass components (lightning-button(s) for example) into. Troubleshooting Attempted An unnamed single slot passes the "header" button ...
S.B.'s user avatar
  • 2,071
0 votes
1 answer
3k views

How can I tell if a component received slot content?

I have a component with an optional slot, and I need it to behave slightly differently if it received content in the slot vs. if it doesn't. How can I programmatically determine if a component ...
Chuck's user avatar
  • 967
0 votes
1 answer
4k views

How does slot attribute works in lightning-button?

I have the below example where a slot attribute is passed to the lightning-button to align with the lightning-card. Is there a documentation where I could read more about the slot property? <...
Krishnamurthy's user avatar
10 votes
1 answer
1k views

Is invoking methods on slot children in LWCs possible?

I have an LWC that wraps other child LWCs via a slot: <template> ... <div class="sections-content-container"> ... <slot></slot> ... ...
Keith C's user avatar
  • 136k
2 votes
2 answers
857 views

Why do LWC slots work inside this nested Aura component?

According to the salesforce documentation (note near the very bottom), "If a Lightning web component contains a slot, you can nest it in an Aura component but you can't use the slot.". I ...
jbyrd's user avatar
  • 641
1 vote
0 answers
887 views

FSL: Unable to retrieve slots using GetABSlots (AppointmentBookingService)

I'm trying to use the getABSlots method of the AppointmentBookingService class, after setting up the "complex work" of service appointments in our field service settings. This is how our ...
Lucas Calegari's user avatar
9 votes
1 answer
2k views

Can markup be passed to a grand-child component in LWC using slots?

LWC slots allow a parent component to pass markup into a pre-defined region of a child component. (This mechanism replaces Aura facets.) But is there a pattern to pass markup through to a grand-child ...
Keith C's user avatar
  • 136k