Skip to main content

when

Function when 

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

Render f() only when condition is true.