module Components::Reactive::ActionRegistry

Overview

Registry for component actions to enable dynamic dispatch

Defined in:

components/reactive/action_registry.cr

Class Method Summary

Macro Summary

Class Method Detail

def self.execute(component : Component, action_name : String, data : JSON::Any | Nil) : Bool #

Execute an action if registered


[View source]
def self.has_action?(action_name : String) : Bool #

Check if an action is registered


[View source]
def self.register(action_name : String, &block : Component, JSON::Any | Nil -> Nil) #

Register an action handler


[View source]

Macro Detail

macro reactive_action(name) #

Macro to define reactive actions in components


[View source]