Struct patternfly_yew::components::card::CardProperties
source · 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: Html
Content rendered inside the Card.
id: AttrValue
ID of the card. Also passed back in the CardHeader onexpand callback.
class: Classes
Additional classes added to the card.
component: String
Sets the base component to render. Defaults to “div”.
size: CardSize
The size of the Card. View CardSize
for more info.
selectable: bool
Modifies the card to include selectable styling. Check CardSelectableActionsVariant
for more info.
selected: bool
Styles the card as selected.
clickable: bool
Modifies 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: bool
Modifies a clickable or selectable card to have disabled styling.
flat: bool
Use flat styling.
rounded: bool
Modifies the card to include rounded styling.
full_height: bool
Cause component to consume the available height of its container.
plain: bool
Use plain styling. This removes border and background.
expanded: bool
Flag 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: OuiaComponentType
OUIA Component Type
ouia_safe: OuiaSafe
OUIA 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 · source§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§fn eq(&self, other: &CardProperties) -> bool
fn eq(&self, other: &CardProperties) -> bool
self
and other
values to be equal, and is used
by ==
.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§
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
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.