[][src]Struct seed_bootstrap::dropdown::Dropdown

pub struct Dropdown<Ms: 'static, ItemValue> { /* fields omitted */ }

Implementations

impl<Ms: 'static, ItemValue: Clone + 'static> Dropdown<Ms, ItemValue>[src]

pub fn new(title: impl Into<Cow<'static, str>>) -> Self[src]

pub fn title(mut self: Self, title: impl Into<Cow<'static, str>>) -> Self[src]

pub fn id(mut self: Self, id: impl Into<Cow<'static, str>>) -> Self[src]

pub fn items(mut self: Self, items: Vec<Item<ItemValue>>) -> Self[src]

pub fn add_on_item_click(
    mut self: Self,
    on_item_click: impl FnOnce(MouseEvent, ItemValue) -> Ms + Clone + 'static
) -> Self
[src]

pub fn update_toggle(
    mut self: Self,
    f: impl FnOnce(Button<Ms>) -> Button<Ms>
) -> Self
[src]

pub fn view(
    self,
    model: &Model,
    to_msg: impl FnOnce(Msg) -> Ms + Clone + 'static
) -> Node<Ms>
[src]

pub fn view_in_nav(
    self,
    model: &Model,
    to_msg: impl FnOnce(Msg) -> Ms + Clone + 'static
) -> Node<Ms>
[src]

pub fn view_in_split_button(
    self,
    model: &Model,
    to_msg: impl FnOnce(Msg) -> Ms + Clone + 'static,
    scren_reader_title: &str
) -> Vec<Node<Ms>>
[src]

Trait Implementations

impl<Ms, ItemValue> Default for Dropdown<Ms, ItemValue>[src]

Auto Trait Implementations

impl<Ms, ItemValue> !RefUnwindSafe for Dropdown<Ms, ItemValue>[src]

impl<Ms, ItemValue> !Send for Dropdown<Ms, ItemValue>[src]

impl<Ms, ItemValue> !Sync for Dropdown<Ms, ItemValue>[src]

impl<Ms, ItemValue> Unpin for Dropdown<Ms, ItemValue> where
    ItemValue: Unpin
[src]

impl<Ms, ItemValue> !UnwindSafe for Dropdown<Ms, ItemValue>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,