← All native models

Native model

workspace_handler

Declare a named workspace_handler value and reference it as workspace_handler.your_name. Models have no separate platform identity or lifecycle.

Topics: Surfaces

Fields

Declares a server Lua function the workspace can call: read handlers supply panel data, action handlers perform writes. Omit input and output to derive the contract from the typed Lua function.

object
childrenOptional
array
Minimum items
0
Maximum items
9223372036854776000
List items
All of these apply
componentRequired
string
Value
"handler"
modeRequired

read to supply panel data, action to perform writes.

string
Allowed values
["read","action"]
Minimum length
1
nameRequired

Name of the Lua function, exported as exports.<name>.

string
Minimum length
1

Only the fields listed here are accepted.