[−][src]Struct seed_bootstrap::dropdown::Dropdown
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]
mut self: Self,
on_item_click: impl FnOnce(MouseEvent, ItemValue) -> Ms + Clone + 'static
) -> Self
pub fn update_toggle(
mut self: Self,
f: impl FnOnce(Button<Ms>) -> Button<Ms>
) -> Self
[src]
mut self: Self,
f: impl FnOnce(Button<Ms>) -> Button<Ms>
) -> Self
pub fn view(
self,
model: &Model,
to_msg: impl FnOnce(Msg) -> Ms + Clone + 'static
) -> Node<Ms>
[src]
self,
model: &Model,
to_msg: impl FnOnce(Msg) -> Ms + Clone + 'static
) -> Node<Ms>
pub fn view_in_nav(
self,
model: &Model,
to_msg: impl FnOnce(Msg) -> Ms + Clone + 'static
) -> Node<Ms>
[src]
self,
model: &Model,
to_msg: impl FnOnce(Msg) -> Ms + Clone + 'static
) -> Node<Ms>
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]
self,
model: &Model,
to_msg: impl FnOnce(Msg) -> Ms + Clone + 'static,
scren_reader_title: &str
) -> Vec<Node<Ms>>
Trait Implementations
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]
ItemValue: Unpin,
impl<Ms, ItemValue> !UnwindSafe for Dropdown<Ms, ItemValue>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,