![]() ![]() To access a record’s data or metadata, in the component’s JavaScript class, you use the decorator to create a public recordId property. To execute the action without a modal, or to define a custom modal window, you set the actionType to Action.Īnother useful property for a Lightning web component action is recordId, which provides the record context to the component when it’s invoked from a Lightning record page. For the action to appear in a modal window defined by Salesforce, you set the actionType to ScreenAction. You make a Lightning web component invokable as an action by adding lightning_RecordAction as a target in the component’s metadata configuration XML file and specifying the actionTypefor the targetConfigs. You can easily convert your existing Lightning web components to actions and use them in Lightning Experience. Lightning web component actions are built on the existing Lightning Web Component framework. This content covers Lightning web components. Lightning web components and Aura components can coexist and interoperate on a page. As of the Spring ’19 release (API version 45.0), you can build Lightning components using two programming models: the Lightning Web Components model and the original Aura Components model.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |