Skip to main content

container

Function container 

Source
pub fn container<H: UiHost, F, I>(children: F) -> UiBuilder<ContainerBox<H, F>>
where F: FnOnce(&mut ElementContext<'_, H>) -> I, I: IntoIterator, I::Item: IntoUiElement<H>,
Expand description

Returns a patchable container builder.

Usage:

  • ui::container(|cx| vec![...]).px_2().into_element(cx)