Struct ybc::FieldProps
source · pub struct FieldProps {Show 15 fields
pub children: Children,
pub classes: Classes,
pub label: Option<String>,
pub label_classes: Classes,
pub help: Option<String>,
pub help_classes: Classes,
pub help_has_error: bool,
pub icons_left: bool,
pub icons_right: bool,
pub addons: bool,
pub addons_align: Option<AddonsAlign>,
pub grouped: bool,
pub grouped_align: Option<GroupedAlign>,
pub multiline: bool,
pub horizontal: bool,
}
Fields§
§children: Children
§classes: Classes
§label: Option<String>
A text label for the field.
label_classes: Classes
Extra classes for the label container.
help: Option<String>
A help message for the field.
help_classes: Classes
Extra classes for the help message container.
help_has_error: bool
A convenience bool to add the is-danger
class to the help classes when true
.
icons_left: bool
Has icons on the left of the field’s controls.
icons_right: bool
Has icons on the right of the field’s controls.
addons: bool
Allow addons to the field’s controls.
addons_align: Option<AddonsAlign>
Alignment for the field’s addons.
grouped: bool
All controls in this field should be grouped.
grouped_align: Option<GroupedAlign>
Alignment for grouped controls.
multiline: bool
Allow the grouped controls to span multiple lines.
horizontal: bool
Make this a horizontal field.
Trait Implementations§
source§impl Clone for FieldProps
impl Clone for FieldProps
source§fn clone(&self) -> FieldProps
fn clone(&self) -> FieldProps
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 FieldProps
impl Debug for FieldProps
source§impl PartialEq<FieldProps> for FieldProps
impl PartialEq<FieldProps> for FieldProps
source§fn eq(&self, other: &FieldProps) -> bool
fn eq(&self, other: &FieldProps) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Properties for FieldProps
impl Properties for FieldProps
impl StructuralPartialEq for FieldProps
Auto Trait Implementations§
impl !RefUnwindSafe for FieldProps
impl !Send for FieldProps
impl !Sync for FieldProps
impl Unpin for FieldProps
impl !UnwindSafe for FieldProps
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.