Newer Version Available
force:recordPreview
force:recordPreview has been deprecated. Use
force:recordData instead.
Methods
This component supports the following methods.
getNewRecord: Loads a record template and sets it to force:recordPreview’s targetRecord attribute, including predefined 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. |