Struct patternfly_yew::components::form::CheckboxProperties
source · pub struct CheckboxProperties {Show 17 fields
pub id: Option<String>,
pub name: Option<AttrValue>,
pub class: Classes,
pub input_class: Classes,
pub valid: bool,
pub disabled: bool,
pub required: bool,
pub checked: CheckboxState,
pub onchange: Callback<CheckboxState>,
pub label: OptionalHtml,
pub aria_label: AttrValue,
pub description: OptionalHtml,
pub body: Option<Html>,
pub component: String,
pub ouia_id: Option<String>,
pub ouia_type: OuiaComponentType,
pub ouia_safe: OuiaSafe,
}
Expand description
Properties for Checkbox
.
Fields§
§id: Option<String>
Id of the checkbox
name: Option<AttrValue>
The name of the input field
class: Classes
Additional classes added to the checkbox.
input_class: Classes
Additional classes added to the radio input.
valid: bool
Flag to show if the checkbox selection is valid or invalid.
disabled: bool
Flag to show if the checkbox is disabled.
required: bool
Flag to show if the checkbox is required.
checked: CheckboxState
Flag to show if the checkbox is checked.
onchange: Callback<CheckboxState>
A callback for when the checkbox selection changes.
label: OptionalHtml
Label text of the checkbox.
aria_label: AttrValue
Aria-label of the checkbox.
description: OptionalHtml
Description text of the checkbox.
body: Option<Html>
Body text of the checkbox.
component: String
Sets the input wrapper component to render.
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 CheckboxProperties
impl Clone for CheckboxProperties
source§fn clone(&self) -> CheckboxProperties
fn clone(&self) -> CheckboxProperties
Returns a copy 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 CheckboxProperties
impl Debug for CheckboxProperties
source§impl PartialEq for CheckboxProperties
impl PartialEq for CheckboxProperties
source§fn eq(&self, other: &CheckboxProperties) -> bool
fn eq(&self, other: &CheckboxProperties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Properties for CheckboxProperties
impl Properties for CheckboxProperties
impl StructuralPartialEq for CheckboxProperties
Auto Trait Implementations§
impl Freeze for CheckboxProperties
impl !RefUnwindSafe for CheckboxProperties
impl !Send for CheckboxProperties
impl !Sync for CheckboxProperties
impl Unpin for CheckboxProperties
impl !UnwindSafe for CheckboxProperties
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
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>
Convert
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
Convert
self
to a value of a Properties
struct.