Skip to main content

@dialstack/sdk-dev / server/src / MaterializedButton

Interface: MaterializedButton

Defined in: sdk/server/src/index.ts:1319

The effective button after template rows and per-device overrides merge.

Properties​

compatibility​

TypeScript
compatibility: ButtonCompatibilityVerdict;

Defined in: sdk/server/src/index.ts:1333


label​

TypeScript
label: string;

Defined in: sdk/server/src/index.ts:1321


override?​

TypeScript
optional override?: string | null;

Defined in: sdk/server/src/index.ts:1332


position​

TypeScript
position: number;

Defined in: sdk/server/src/index.ts:1320


source​

TypeScript
source: "template" | "override" | "template_overridden" | "model_default";

Defined in: sdk/server/src/index.ts:1330

Where the button came from. model_default is one the device model gets for free because its hardware has no other way to reach the function — it is stored nowhere, so it carries neither template_button nor override, but a device override at the same position still shadows or suppresses it.


target​

TypeScript
target: ButtonTarget;

Defined in: sdk/server/src/index.ts:1323


template_button?​

TypeScript
optional template_button?: string | null;

Defined in: sdk/server/src/index.ts:1331


type​

TypeScript
type: ButtonType;

Defined in: sdk/server/src/index.ts:1322