Action Overview
Actions describe behavior in schema. They live in Thinkrix\Schema\Actions and can be used in events, lifecycle hooks, methods, and request callbacks.
Common Actions
SetAction: set state valuesCallAction: call frontend or schema methodsFetchAction: send API requestsIfAction: conditional branchesCopyAction: copy textEmitAction: emit custom eventsScriptAction: run script snippetsWebSocketAction: WebSocket operations
Example
php
Button::make()
->text('Save')
->on('click', [
SetAction::make('loading', true),
FetchAction::make('/settings')->post()->body('{{ formData }}')
->then([CallAction::make('$message.success', ['Saved'])])
->finally([SetAction::make('loading', false)]),
]);Actions are executed in the browser by vschema-ui.