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.

status

The current status of the state manager. See status for details.

data

When status is "loaded", a RecordLayout.

error

When status is "error", this property contains details. See error for details.

See Also