Current section
Files
Jump to
Current section
Files
include/plushie@widget_WidgetDef.hrl
-record(widget_def, {
init :: fun(() -> any()),
view :: fun((binary(), any(), any()) -> plushie@node:node_()),
handle_event :: fun((plushie@event:event(), any()) -> {plushie@widget:event_action(),
any()}),
subscriptions :: fun((any(), any()) -> list(plushie@subscription:subscription())),
cache_key :: gleam@option:option(fun((any(), any()) -> gleam@dynamic:dynamic_()))
}).