pub struct CheckboxListProps {
pub field: String,
pub options: Vec<SelectOption>,
pub options_path: Option<String>,
pub selected_path: Option<String>,
pub label: Option<String>,
pub description: Option<String>,
pub disabled: Option<bool>,
pub error: Option<String>,
}Expand description
Props for CheckboxList component — multi-select checkbox group.
Each checked option submits as field=value. Options may be supplied
statically via options or resolved at render time from options_path.
Pre-selected values are read from selected_path (a Vec<String>).
Fields§
§field: StringShared form field name; each checkbox submits as field=value.
options: Vec<SelectOption>Static options list. When empty and options_path is set, options are
resolved from the data at render time.
options_path: Option<String>Data path to an array of {value, label} objects for data-driven options.
selected_path: Option<String>Data path to a Vec<String> of pre-selected values.
label: Option<String>§description: Option<String>§disabled: Option<bool>§error: Option<String>Trait Implementations§
Source§impl Clone for CheckboxListProps
impl Clone for CheckboxListProps
Source§fn clone(&self) -> CheckboxListProps
fn clone(&self) -> CheckboxListProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CheckboxListProps
impl Debug for CheckboxListProps
Source§impl<'de> Deserialize<'de> for CheckboxListProps
impl<'de> Deserialize<'de> for CheckboxListProps
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for CheckboxListProps
impl JsonSchema for CheckboxListProps
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CheckboxListProps
impl PartialEq for CheckboxListProps
Source§fn eq(&self, other: &CheckboxListProps) -> bool
fn eq(&self, other: &CheckboxListProps) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CheckboxListProps
impl Serialize for CheckboxListProps
impl StructuralPartialEq for CheckboxListProps
Auto Trait Implementations§
impl Freeze for CheckboxListProps
impl RefUnwindSafe for CheckboxListProps
impl Send for CheckboxListProps
impl Sync for CheckboxListProps
impl Unpin for CheckboxListProps
impl UnsafeUnpin for CheckboxListProps
impl UnwindSafe for CheckboxListProps
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