Function Show

pub fn Show<W, C>(props: ShowProps<W, C>) -> impl IntoView
where W: Fn() -> bool + Send + Sync + 'static, C: IntoView + 'static,
Expand description

§Required Props

  • children: TypedChildrenFn<C>
    • The children will be shown whenever the condition in the when closure returns true.
  • when: [W]
    • A closure that returns a bool that determines whether this thing runs

§Optional Props

  • fallback: impl Into<ViewFn>
    • A closure that returns what gets rendered if the when statement is false. By default this is the empty view.