[][src]Module plaster::components::select

This module contains implementation of Select component. You can use it instead <select> tag, because the component helps you to track selected value in an original type. Example:

enum Scene {
    First,
    Second,
}

fn view() -> Html<Model> {
    let scenes = vec![Scene::First, Scene::Second];
    html! {
        <Select<Scenes>: options=scenes, />
    }
}

Structs

Props

Properties of Select component.

Select

Select component.

Enums

Msg

Internal message of the component.