blockly > serialization > blocks > State
serialization.blocks.State interface
Represents the state of a given block.
Signature:
export interface State
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
collapsed? | boolean | (Optional) | |
data? | string | (Optional) | |
deletable? | boolean | (Optional) | |
disabledReasons? | string[] | (Optional) | |
editable? | boolean | (Optional) | |
enabled? | boolean | (Optional) | |
extraState? | any | (Optional) | |
fields? | { [key: string]: any; } | (Optional) | |
icons? | { [key: string]: any; } | (Optional) | |
id? | string | (Optional) | |
inline? | boolean | (Optional) | |
inputs? | { [key: string]: ConnectionState; } | (Optional) | |
movable? | boolean | (Optional) | |
next? | ConnectionState | (Optional) | |
type | string | ||
x? | number | (Optional) | |
y? | number | (Optional) |