Skip to content

EditorPanelState beta ​

Interface of @v12-engine/editor

ts
export interface EditorPanelState<T>

A value a panel keeps (panel.state): value() or value.get() reads it, value.set(next) (or a function of what it was) changes it

Members ​

(call) ​

ts
(): T;

The value now, read as a function so that Solid follows it

get ​

ts
get(): T;

The value now

set ​

ts
set(value: T | ((was: T) => T)): void;

Sets the value, or a function of the value it was