-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow access to Slot elements from the component #2092
Comments
Hi @AllanOricil, I believe your issue is somehow similar to mine #2218 in a more complex example. It doesn't seems possible currently to have slot in loop. |
This sounds like a request for what we're calling "scoped slots": salesforce/lwc-rfcs#63 . The reason I think so is because you're wanting to have slots inside of a for-loop and to pass for-loop-specific information into those slots (e.g. the current iteration index). Closing as a duplicate of #210, please reopen if I'm mistaken. |
@nolanlawson it is related, but I'm not sure if #210 would also expose |
Hm, you're right, the proposal doesn't seem to allow programmatic access to the |
Delivered 23 with scoped slots? @nolanlawson |
@AllanOricil It's true that we don't provide explicit access to slots. However, in native shadow you should be able to do For scoped slots, those are light DOM slots, and in the case of light DOM slots, I don't even know what it would mean to expose |
Is your feature request related to a problem? Please describe.
No. It is a feature request.
I want to access the list of
slots
from within the parentDescribe the solution you'd like
this.slots
must be accessible from parentDescribe alternatives you've considered
use
lwc:dom
The text was updated successfully, but these errors were encountered: