sycamore::web

Type Alias BoolAttribute

pub type BoolAttribute = MaybeDyn<bool>;
Expand description

Type alias respresenting a possibly dynamic boolean value.

Aliased Type§

enum BoolAttribute {
    Static(bool),
    Signal(ReadSignal<bool>),
    Derived(Rc<dyn Fn() -> MaybeDyn<bool>>),
}

Variants§

§

Static(bool)

A static value.

§

Signal(ReadSignal<bool>)

A dynamic value backed by a signal.

§

Derived(Rc<dyn Fn() -> MaybeDyn<bool>>)

A derived dynamic value.