lightning/stateManagerLayout
This state manager gets layout information, metadata, and data you can use to build a user interface for one or more records.
Record layout details depend on the object, record type, and layout type.
setConfig()Provide the entire configuration as an object. This function is equivalent to the factory function when you create the state manager.
setObjectApiName()Set the object API (developer) name.
setLayoutType()Set the layout type: "Compact" or "Full".
setMode()Set the layout mode: "Create", "Edit", or "View".
setRecordTypeId()Set the record type for the object, in the form of a record type ID. When omitted, the default record type is used.
statusThe current status of the state manager. See
statusfor details.dataWhen
statusis "loaded", aRecordLayout.errorWhen
statusis "error", this property contains details. Seeerrorfor details.
See Also
- Nested State Manager Example
- getLayout wire adapter
- User Interface API Developer Guide: Get Record Layout Metadata