Skip to main content

when

Function when 

Source
pub fn when<V: View>(condition: bool, f: impl FnOnce() -> V) -> Node
Expand description

Render f() only when condition is true.