pub struct HelperTextItemProperties {
pub children: Html,
pub class: Classes,
pub component: HelperTextItemComponent,
pub dynamic: bool,
pub icon: HelperTextItemIcon,
pub id: Option<AttrValue>,
pub screen_reader_text: AttrValue,
pub variant: HelperTextItemVariant,
}
Fields§
§children: Html
Content to be rendered inside the HelperTextItem
.
class: Classes
Additional classes to be applied to the HelperTextItem
.
component: HelperTextItemComponent
Set the type of html element to use. When HelperTextItem
is used as a child of
HelperText
this property is set automatically.
dynamic: bool
Flag to modifies a HelperTextItem
to be dynamic. For use when the item changes state as
the form field the text is associated with is updated.
icon: HelperTextItemIcon
Controls the icon prefixing the helper text. The default is to show an icon when the
dynamic
property is true
id: Option<AttrValue>
id for the HelperTextItem
. The value of this property can be passed into a form
component’s aria-describedby
property when you intend for only specific helper text items
to be announced to assistive technologies.
screen_reader_text: AttrValue
Text that is only accessible to screen readers in order to announce the status of the
HelperTextItem
. This property is only used when the dynamic
is true
.
variant: HelperTextItemVariant
Variant styling of the helper text item
Trait Implementations§
source§impl Clone for HelperTextItemProperties
impl Clone for HelperTextItemProperties
source§fn clone(&self) -> HelperTextItemProperties
fn clone(&self) -> HelperTextItemProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HelperTextItemProperties
impl Debug for HelperTextItemProperties
source§impl PartialEq for HelperTextItemProperties
impl PartialEq for HelperTextItemProperties
source§fn eq(&self, other: &HelperTextItemProperties) -> bool
fn eq(&self, other: &HelperTextItemProperties) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HelperTextItemProperties
Auto Trait Implementations§
impl Freeze for HelperTextItemProperties
impl !RefUnwindSafe for HelperTextItemProperties
impl !Send for HelperTextItemProperties
impl !Sync for HelperTextItemProperties
impl Unpin for HelperTextItemProperties
impl !UnwindSafe for HelperTextItemProperties
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.