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: ClassesAdditional classes added to the checkbox.
input_class: ClassesAdditional classes added to the radio input.
valid: boolFlag to show if the checkbox selection is valid or invalid.
disabled: boolFlag to show if the checkbox is disabled.
required: boolFlag to show if the checkbox is required.
checked: CheckboxStateFlag to show if the checkbox is checked.
onchange: Callback<CheckboxState>A callback for when the checkbox selection changes.
label: OptionalHtmlLabel text of the checkbox.
aria_label: AttrValueAria-label of the checkbox.
description: OptionalHtmlDescription text of the checkbox.
body: Option<Html>Body text of the checkbox.
component: StringSets the input wrapper component to render.
ouia_id: Option<String>OUIA Component id
ouia_type: OuiaComponentTypeOUIA Component Type
ouia_safe: OuiaSafeOUIA Component Safe
Trait Implementations§
Source§impl Clone for CheckboxProperties
impl Clone for CheckboxProperties
Source§fn clone(&self) -> CheckboxProperties
fn clone(&self) -> CheckboxProperties
Returns a duplicate of the value. Read more
1.0.0§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§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§
§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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
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>
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.