Access DOM Elements with lwc:ref | Full Demo Video | Spring '23 | lwc:ref directives | SalesforceMan

preview_player
Показать описание
Now you can use refs to access elements in shadow DOM and light DOM. Refs locate DOM elements without a selector and only query elements contained in a specified template. Previously, you could only use querySelector() to locate specific DOM elements.

The lwc:spread directive accepts one object.

Speaker :

#salesforce #lightning #lwc #lwcrefs #salesforcespring23release #reactiveproperty #lwc #salesforcerelease #sfdcdevelopers #salesforcedevelopers #salesforceapex
Рекомендации по теме