pub struct CardProperties {Show 18 fields
pub children: Html,
pub id: AttrValue,
pub class: Classes,
pub component: String,
pub size: CardSize,
pub selectable: bool,
pub selected: bool,
pub clickable: bool,
pub disabled: bool,
pub flat: bool,
pub rounded: bool,
pub full_height: bool,
pub plain: bool,
pub expanded: bool,
pub style: Option<AttrValue>,
pub ouia_id: Option<String>,
pub ouia_type: OuiaComponentType,
pub ouia_safe: OuiaSafe,
}Expand description
Properties for Card
Fields§
§children: HtmlContent rendered inside the Card.
id: AttrValueID of the card. Also passed back in the CardHeader onexpand callback.
class: ClassesAdditional classes added to the card.
component: StringSets the base component to render. Defaults to “div”.
size: CardSizeThe size of the Card. View CardSize for more info.
selectable: boolModifies the card to include selectable styling. Check CardSelectableActionsVariant for more info.
selected: boolStyles the card as selected.
clickable: boolModifies the card to include clickable styling.
If selectable is also true, then this allows clicking things within the card (such as links and buttons).
If selectable is false, then you can supply a CardSelectableActionsVariant::Click to
perform an action if any part of the card is clicked.
disabled: boolModifies a clickable or selectable card to have disabled styling.
flat: boolUse flat styling.
rounded: boolModifies the card to include rounded styling.
full_height: boolCause component to consume the available height of its container.
plain: boolUse plain styling. This removes border and background.
expanded: boolFlag indicating if the card is expanded. Shows expandable content when true.
style: Option<AttrValue>Add additional styles to the Card.
ouia_id: Option<String>OUIA Component id
ouia_type: OuiaComponentTypeOUIA Component Type
ouia_safe: OuiaSafeOUIA Component Safe
Trait Implementations§
Source§impl Clone for CardProperties
impl Clone for CardProperties
Source§fn clone(&self) -> CardProperties
fn clone(&self) -> CardProperties
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for CardProperties
impl PartialEq for CardProperties
Source§impl Properties for CardProperties
impl Properties for CardProperties
impl StructuralPartialEq for CardProperties
Auto Trait Implementations§
impl Freeze for CardProperties
impl !RefUnwindSafe for CardProperties
impl !Send for CardProperties
impl !Sync for CardProperties
impl Unpin for CardProperties
impl !UnwindSafe for CardProperties
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
self to a value of a Properties struct.