Function label
Source pub fn label<S: Display + 'static>(label: impl Fn() -> S + 'static) -> Label
๐Deprecated since 0.2.0: Use Label::derived() instead
Expand description
A view that can reactively display text from an item that implements Display. See also text for a non-reactive label.
ยงExample
use floem::{reactive::*, views::*};
let text = RwSignal::new("Reactive text to be displayed".to_string());
label(move || text.get());