Function cosmic::iced_widget::column

source ·
pub fn column<'a, Message, Theme, Renderer>(
    children: impl IntoIterator<Item = Element<'a, Message, Theme, Renderer>>,
) -> Column<'a, Message, Theme, Renderer>
where Renderer: Renderer,
Expand description

Creates a new Column with the given children.

Columns distribute their children vertically.

§Example

use iced::widget::{column, text};

enum Message {
    // ...
}

fn view(state: &State) -> Element<'_, Message> {
    column((0..5).map(|i| text!("Item {i}").into())).into()
}