Enum leptos_dom::Property
source · Expand description
Represents the different possible values an element property could have, allowing you to do fine-grained updates to single fields.
This mostly exists for the view
macro’s use. You usually won’t need to interact with it directly.
Variants§
Value(JsValue)
A static JavaScript value.
Fn(Box<dyn Fn() -> JsValue>)
A (presumably reactive) function, which will be run inside an effect to toggle the class.