|
1
|
{"slug":"/references/settings/interfaces/settings.LayoutConfigurationDTO","title":"LayoutConfigurationDTO","frontmatter":{"displayed_sidebar":"settingsReference"},"toc":[],"blocks":[{"kind":"markdown","html":"The layout configuration data model.\n\nUnlike view configurations, there is at most one layout configuration per\n`(zone, user_id)` pair, plus an optional single system default per zone."},{"kind":"typeList","sectionTitle":"LayoutConfigurationDTO","types":[{"name":"id","type":"`string`","description":"The ID of the configuration.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"zone","type":"`string`","description":"The zone (page) this configuration is for, e.g. \"product.details\".","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"user_id","type":"`null` \\| `string`","description":"The user ID this configuration belongs to, or null for the system default.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_system_default","type":"`boolean`","description":"Whether this is the system default configuration for the zone.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"configuration","type":"[LayoutConfigurationData](/references/settings/interfaces/settings.LayoutConfigurationData)","description":"The layout configuration data.","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"widgets","type":"`Record<string, [LayoutWidgetPreference](/references/settings/interfaces/settings.LayoutWidgetPreference)>`","description":"Per-widget placement and visibility preferences, keyed by widget ID.","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"hidden","type":"`boolean`","description":"Whether the widget is hidden.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"section","type":"`string`","description":"Override which section this widget appears in.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"`number`","description":"Override the sort order of the widget within its section.","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]},{"name":"created_at","type":"`Date`","description":"The date the configuration was created.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"updated_at","type":"`Date`","description":"The date the configuration was last updated.","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]} |