View as Markdown

API reference: @salmonui/layout/dashboard-layout

DashboardLayoutItemtype

import type { DashboardLayoutItem } from '@salmonui/layout/dashboard-layout';
type DashboardLayoutItem = GridLayoutItem;

One panel of the layout value, which is also its serialized form.

DashboardLayoutItem members (10, 10 inherited)
NameSignatureDescription
idinheritedid: string;

Stable id (the DashboardLayout.Panel id).

xinheritedx: number;

Column from the inline start, 0-based.

yinheritedy: number;

Row from the top, 0-based.

winheritedw: number;

Width in columns.

hinheritedh: number;

Height in rows.

minWoptionalinheritedminW?: number;
maxWoptionalinheritedmaxW?: number;
minHoptionalinheritedminH?: number;
maxHoptionalinheritedmaxH?: number;
staticoptionalinheritedstatic?: boolean;

Never moved or resized, by the user or by other items.