pub struct WidgetProps {
pub id: Option<String>,
pub classes: Vec<String>,
pub inline_style: Option<Style>,
}Expand description
Common widget properties for styling
Fields§
§id: Option<String>Element ID
classes: Vec<String>CSS classes
inline_style: Option<Style>Inline style override
Implementations§
Source§impl WidgetProps
impl WidgetProps
Sourcepub fn classes_slice(&self) -> &[String]
pub fn classes_slice(&self) -> &[String]
Get classes as slice
Sourcepub fn classes_vec(&self) -> Vec<String>
pub fn classes_vec(&self) -> Vec<String>
Get classes as Vec (cloned)
Trait Implementations§
Source§impl Clone for WidgetProps
impl Clone for WidgetProps
Source§fn clone(&self) -> WidgetProps
fn clone(&self) -> WidgetProps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WidgetProps
impl Debug for WidgetProps
Source§impl Default for WidgetProps
impl Default for WidgetProps
Source§fn default() -> WidgetProps
fn default() -> WidgetProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WidgetProps
impl RefUnwindSafe for WidgetProps
impl Send for WidgetProps
impl Sync for WidgetProps
impl Unpin for WidgetProps
impl UnsafeUnpin for WidgetProps
impl UnwindSafe for WidgetProps
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