Newer Version Available
force:recordPreview (Developer Preview)
Use the force:recordPreview component to define the parameters for accessing, modifying,
or creating a record using Lightning Data
Service.
Methods
This component supports the following methods.
getNewRecord: Loads a record template and sets it to force:recordPreview’s targetRecord attribute, including redefined values for the entity and record type.
reloadRecord: Performs the same load function as on init using the current configuration values (recordId, layoutType, mode, and others). Doesn’t force a server trip unless required.
saveRecord: Saves the record.
deleteRecord: Deletes the record.
Attributes
Events
| Event Name | Event Type | Description |
|---|---|---|
| recordUpdated | COMPONENT | The event fired when the record is loaded, changed, updated, or removed. |