Dashboard

Installation

import { Dashboard } from 'uxp/components';

Signature

const Dashboard: React.FunctionComponent<DashboardProps>

Properties

Name
Type
Mandatory
Default Value
Example Value

widgets

Yes

-

-

onSave

(widgets: IWidgetInstance[], layouts: ResponsiveLayouts) => Promise

Yes

-

-

margin

[number, number]

No

-

-

padding

[number, number]

No

-

-

isEditing

boolean

Yes

-

-

allowRearrange

boolean

No

-

-

breakpoints

Record<string, BreakPoint>

No

-

-

onChangeBreakPoint

(cols: number) => void

No

-

-

showSpacerWidget

boolean

No

-

-

emptyPlaceholder

{ /** * Whether to show placeholder / show?: boolean; /* * Custom message to display / message?: string; /* * Callback when placeholder is clicked */ onClick?: () => void; }

No

-

-

allowFreePositioning

boolean

No

-

-

allowOverlap

boolean

No

-

-

isBounded

boolean

No

-

-

transformScale

number

No

-

-

onContainerMount

(ref: HTMLDivElement) => void

No

-

-

breakpointOverride

string | null

No

-

-

Last updated