Layout concepts
Views, navigation items, and page layouts reference each other by
universalIdentifier:
- A navigation menu item of type
VIEWpoints at adefineViewidentifier, so the sidebar link opens that saved view. - A page layout of type
RECORD_PAGEtargets an object and can embed front components inside its tabs as widgets.
defineView
Define saved views for objects
defineView
Define saved views for objects
Views are saved configurations for how records of an object are displayed — including which fields are visible, their order, and any filters or groups applied. Use Key points:
defineView() to ship pre-configured views with your app:src/views/example-view.ts
objectUniversalIdentifierspecifies which object this view applies to.keydetermines the view type (e.g.,ViewKey.INDEXfor the main list view).fieldscontrols which columns appear and their order. Each field references afieldMetadataUniversalIdentifier.- You can also define
filters,filterGroups,groups, andfieldGroupsfor more advanced configurations. positioncontrols the ordering when multiple views exist for the same object.
Define sidebar navigation links
Define sidebar navigation links
definePageLayout
Define custom page layouts for record views
definePageLayout
Define custom page layouts for record views
Page layouts let you customize how a record detail page looks — which tabs appear, what widgets are inside each tab, and how they are arranged. Use Key points:
definePageLayout() to ship custom layouts with your app:src/page-layouts/example-record-page-layout.ts
typeis typically'RECORD_PAGE'to customize the detail view of a specific object.objectUniversalIdentifierspecifies which object this layout applies to.- Each
tabdefines a section of the page with atitle,position, andlayoutMode(CANVASfor free-form layout). - Each
widgetinside a tab can render a front component, a relation list, or other built-in widget types. positionon tabs controls their order. Use higher values (e.g., 50) to place custom tabs after built-in ones.