pub struct DropdownButton {
pub child: Box<LenraComponent>,
pub disabled: Option<bool>,
pub icon: Option<Icon>,
pub main_style: Option<StylesStyle>,
pub size: Option<StylesSize>,
pub text: String,
pub type_: Value,
}Expand description
Element of type Dropdown Button
Fields§
§child: Box<LenraComponent>§disabled: Option<bool>If true, the dropdown button is disabled
icon: Option<Icon>§main_style: Option<StylesStyle>§size: Option<StylesSize>§text: StringThe text of the dropdown button
type_: ValueThe identifier of the component
Implementations§
Source§impl DropdownButton
impl DropdownButton
pub fn builder() -> DropdownButton
Trait Implementations§
Source§impl Clone for DropdownButton
impl Clone for DropdownButton
Source§impl Debug for DropdownButton
impl Debug for DropdownButton
Source§impl<'de> Deserialize<'de> for DropdownButton
impl<'de> Deserialize<'de> for DropdownButton
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&DropdownButton> for DropdownButton
impl From<&DropdownButton> for DropdownButton
Source§fn from(value: &DropdownButton) -> Self
fn from(value: &DropdownButton) -> Self
Converts to this type from the input type.
Source§impl From<DropdownButton> for LenraComponent
impl From<DropdownButton> for LenraComponent
Source§fn from(value: DropdownButton) -> Self
fn from(value: DropdownButton) -> Self
Converts to this type from the input type.
Source§impl From<DropdownButton> for DropdownButton
impl From<DropdownButton> for DropdownButton
Source§fn from(value: DropdownButton) -> Self
fn from(value: DropdownButton) -> Self
Converts to this type from the input type.
Source§impl Serialize for DropdownButton
impl Serialize for DropdownButton
Source§impl TryFrom<DropdownButton> for DropdownButton
impl TryFrom<DropdownButton> for DropdownButton
Auto Trait Implementations§
impl Freeze for DropdownButton
impl RefUnwindSafe for DropdownButton
impl Send for DropdownButton
impl Sync for DropdownButton
impl Unpin for DropdownButton
impl UnsafeUnpin for DropdownButton
impl UnwindSafe for DropdownButton
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more