pub struct FieldArrayProps {Show 23 fields
pub id: AttrValue,
pub name: Option<AttrValue>,
pub label: AttrValue,
pub helper_text: Option<AttrValue>,
pub text: FieldArrayText,
pub initial_value: Option<Value>,
pub item_type: JsonValueType,
pub allowed_item_types: Option<Vec<JsonValueType>>,
pub object_fields: Option<Vec<FieldArrayObjectField>>,
pub preserve_unknown_fields: bool,
pub delete_behavior: FieldArrayDeleteBehavior,
pub placeholder: Option<AttrValue>,
pub add_label: AttrValue,
pub min_items: Option<usize>,
pub max_items: Option<usize>,
pub allow_remove: bool,
pub show_json_preview: bool,
pub block_form_submit_when_invalid: bool,
pub on_json_change: Option<Callback<Value>>,
pub custom_validate: Option<Callback<FieldArrayValidationContext, Vec<FieldArrayCustomIssue>>>,
pub validators: Vec<FieldArrayValidator>,
pub on_validity_change: Option<Callback<JsonInputValidity>>,
pub on_validation_report_change: Option<Callback<JsonBackedValidationReport>>,
}Expand description
Props for FieldArray, a JSON array editor for scalar or object rows.
Fields§
§id: AttrValue§name: Option<AttrValue>§label: AttrValue§helper_text: Option<AttrValue>§text: FieldArrayText§initial_value: Option<Value>§item_type: JsonValueType§allowed_item_types: Option<Vec<JsonValueType>>§object_fields: Option<Vec<FieldArrayObjectField>>§preserve_unknown_fields: bool§delete_behavior: FieldArrayDeleteBehavior§placeholder: Option<AttrValue>§add_label: AttrValue§min_items: Option<usize>§max_items: Option<usize>§allow_remove: bool§show_json_preview: bool§block_form_submit_when_invalid: bool§on_json_change: Option<Callback<Value>>§custom_validate: Option<Callback<FieldArrayValidationContext, Vec<FieldArrayCustomIssue>>>§validators: Vec<FieldArrayValidator>§on_validity_change: Option<Callback<JsonInputValidity>>§on_validation_report_change: Option<Callback<JsonBackedValidationReport>>Trait Implementations§
Source§impl Clone for FieldArrayProps
impl Clone for FieldArrayProps
Source§fn clone(&self) -> FieldArrayProps
fn clone(&self) -> FieldArrayProps
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 PartialEq for FieldArrayProps
impl PartialEq for FieldArrayProps
Source§fn eq(&self, other: &FieldArrayProps) -> bool
fn eq(&self, other: &FieldArrayProps) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Properties for FieldArrayProps
impl Properties for FieldArrayProps
impl StructuralPartialEq for FieldArrayProps
Auto Trait Implementations§
impl Freeze for FieldArrayProps
impl !RefUnwindSafe for FieldArrayProps
impl !Send for FieldArrayProps
impl !Sync for FieldArrayProps
impl Unpin for FieldArrayProps
impl UnsafeUnpin for FieldArrayProps
impl !UnwindSafe for FieldArrayProps
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.