Function sauron::prelude::view_if [−][src]
pub fn view_if<MSG>(
flag: bool,
node: Node<&'static str, &'static str, &'static str, AttributeValue, Callback<Event, MSG>>
) -> Node<&'static str, &'static str, &'static str, AttributeValue, Callback<Event, MSG>>
Expand description
A help function which render the view when the condition is met, otherwise
just display a span(vec![], vec![])