@dialstack/sdk-dev / server/src / MaterializedButton
Interface: MaterializedButton
Defined in: sdk/server/src/index.ts:1022
The effective button after template rows and per-device overrides merge.
Properties
compatibility
compatibility: ButtonCompatibilityVerdict;
Defined in: sdk/server/src/index.ts:1036
label
label: string;
Defined in: sdk/server/src/index.ts:1024
override?
optional override?: string | null;
Defined in: sdk/server/src/index.ts:1035
position
position: number;
Defined in: sdk/server/src/index.ts:1023
source
source: "template" | "override" | "template_overridden" | "model_default";
Defined in: sdk/server/src/index.ts:1033
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
target: ButtonTarget;
Defined in: sdk/server/src/index.ts:1026
template_button?
optional template_button?: string | null;
Defined in: sdk/server/src/index.ts:1034
type
type: ButtonType;
Defined in: sdk/server/src/index.ts:1025