Type Alias SettingsTreeFieldValue
SettingsTreeFieldValue:
| {
input: "autocomplete";
items: string[];
placeholder?: string;
value?: string;
}
| { input: "boolean"; value?: boolean }
| {
hideClearButton?: boolean;
input: "rgb";
placeholder?: string;
value?: string;
}
| {
hideClearButton?: boolean;
input: "rgba";
placeholder?: string;
value?: string;
}
| { input: "gradient"; value?: [string, string] }
| {
input: "messagepath";
supportsMathModifiers?: boolean;
validTypes?: string[];
value?: string;
}
| {
input: "number";
max?: number;
min?: number;
placeholder?: string;
precision?: number;
step?: number;
value?: number;
}
| {
input: "select";
options: { disabled?: boolean; label: string; value: undefined
| number }[];
value?: number | number[];
}
| {
input: "select";
options: { disabled?: boolean; label: string; value: undefined
| string }[];
value?: string | string[];
}
| { input: "string"; placeholder?: string; value?: string }
| {
input: "toggle";
options: string[] | { label: string; value: undefined | string }[];
value?: string;
}
| {
input: "toggle";
options: number[]
| { label: string; value: undefined | number }[];
value?: number;
}
| {
input: "vec3";
labels?: [string, string, string];
max?: number;
min?: number;
placeholder?: [undefined | string, undefined | string, undefined | string];
precision?: number;
step?: number;
value?: [undefined | number, undefined | number, undefined | number];
}
| {
input: "vec2";
labels?: [string, string];
max?: number;
min?: number;
placeholder?: [undefined | string, undefined | string];
precision?: number;
step?: number;
value?: [undefined | number, undefined | number];
}
Type declaration
- { input: "autocomplete"; items: string[]; placeholder?: string; value?: string }
input: "autocomplete"
items: string[]
Optional
placeholder?: string
Optional
value?: string
- { input: "boolean"; value?: boolean }
- {
hideClearButton?: boolean;
input: "rgb";
placeholder?: string;
value?: string;
}Optional
hideClearButton?: boolean
input: "rgb"
Optional
placeholder?: string
Optional
value?: string
- {
hideClearButton?: boolean;
input: "rgba";
placeholder?: string;
value?: string;
}Optional
hideClearButton?: boolean
input: "rgba"
Optional
placeholder?: string
Optional
value?: string
- { input: "gradient"; value?: [string, string] }
- {
input: "messagepath";
supportsMathModifiers?: boolean;
validTypes?: string[];
value?: string;
}input: "messagepath"
Optional
supportsMathModifiers?: boolean
Optional
validTypes?: string[]
Optional
value?: string
- {
input: "number";
max?: number;
min?: number;
placeholder?: string;
precision?: number;
step?: number;
value?: number;
}input: "number"
Optional
max?: number
Optional
min?: number
Optional
placeholder?: string
Optional
precision?: number
Optional
step?: number
Optional
value?: number
- {
input: "select";
options: { disabled?: boolean; label: string; value: undefined | number }[];
value?: number | number[];
} - {
input: "select";
options: { disabled?: boolean; label: string; value: undefined | string }[];
value?: string | string[];
} - { input: "string"; placeholder?: string; value?: string }
input: "string"
Optional
placeholder?: string
Optional
value?: string
- {
input: "toggle";
options: string[] | { label: string; value: undefined | string }[];
value?: string;
} - {
input: "toggle";
options: number[] | { label: string; value: undefined | number }[];
value?: number;
} - {
input: "vec3";
labels?: [string, string, string];
max?: number;
min?: number;
placeholder?: [undefined | string, undefined | string, undefined | string];
precision?: number;
step?: number;
value?: [undefined | number, undefined | number, undefined | number];
} - {
input: "vec2";
labels?: [string, string];
max?: number;
min?: number;
placeholder?: [undefined | string, undefined | string];
precision?: number;
step?: number;
value?: [undefined | number, undefined | number];
}
A settings tree field specifies the input type and the value of a field in the settings editor.