Signals
Hobo has some useful reactivity facilities. The core of this is futures_signals::signal::Mutable
, from which signals are created, check the futures-signals documentation for details on how to do that.
Hobo re-exports futures_signals
as hobo::signals
.
text_signal
/set_text_signal
- callsset_text
whenever the signal value changeschild_signal
/add_child_signal
- initially creates an emptydiv
, then calls.replace_with
every time the signal value changesclass_signal
/set_class_signal
andclass_typed_signal
/set_class_typed_signal
andclass_tagged_signal
/set_class_tagged_signal
- callsset_class_tagged
whenever the signal value changes- will always replace the first class so take care
attr_signal
/set_attr_signal
andbool_attr_signal
/set_bool_attr_signal
- callsset_attr
whenever the signal value changesstyle_signal
/set_style_signal
- callsset_style
whenever the signal value changesmark_signal
- callsmark
/unmark
whenever the signal value changes