Reference
Family - Keyed Column
Unified reference for the Keyed Column widget family across module, constructor, and element APIs.
Family - Keyed Column
This page unifies related iced::widget APIs for the Keyed Column family.
# API surfaces
- Constructor: iced::widget::keyed_column
# Surface summaries
# Constructor
Creates a new keyed::Column from an iterator of elements.
# Verified constructor signature
rust
pub fn keyed_column<'a, Key, Message, Theme, Renderer>( children: impl IntoIterator<Item = (Key, Element<'a, Message, Theme, Renderer>)>, ) -> Column<'a, Key, Message, Theme, Renderer> where Key: Copy + PartialEq, Renderer: Renderer,
# Example References
- ref/examples/loupe/src/main.rs
- ref/examples/clock/src/main.rs
- ref/examples/custom_widget/src/main.rs
- ref/examples/color_palette/src/main.rs
- ref/examples/pokedex/src/main.rs
- ref/examples/arc/src/main.rs
# Inline Examples (from rustdoc)
# Constructor example
rust
use iced::widget::{keyed_column, text}; enum Message { // ... } fn view(state: &State) -> Element<'_, Message> { keyed_column((0..=100).map(|i| { (i, text!("Item {i}").into()) })).into() }
# Related
# Use this when...
- You want one page that links module, constructor, and element surfaces.
- You are deciding which API surface to start from.
- You need a practical map for this widget domain.
# Minimal example
rust
// Typical flow: // 1) Start with constructor usage. // 2) Move to module docs for style/state details. // 3) Use element docs for type-level control.
# How it works
Family pages connect related docs so you do not miss capabilities that are split across constructor/module/element pages.
# Common patterns
rust
// Build with constructor APIs first, // then refine behavior/styles through related module and element docs.
# Gotchas / tips
- Family routes normalize naming; module/function/struct names may differ slightly.
- Prefer this page as your entrypoint when learning unfamiliar widgets.
- Follow example references here before inventing integration patterns.