module
Components::Reactive::ActionRegistry
Overview
Registry for component actions to enable dynamic dispatch
Defined in:
components/reactive/action_registry.crClass Method Summary
-
.execute(component : Component, action_name : String, data : JSON::Any | Nil) : Bool
Execute an action if registered
-
.has_action?(action_name : String) : Bool
Check if an action is registered
-
.register(action_name : String, &block : Component, JSON::Any | Nil -> Nil)
Register an action handler
Macro Summary
-
reactive_action(name)
Macro to define reactive actions in components
Class Method Detail
Execute an action if registered
Register an action handler