pub struct InputProps {Show 14 fields
pub field: String,
pub label: String,
pub input_type: InputType,
pub placeholder: Option<String>,
pub required: Option<bool>,
pub disabled: Option<bool>,
pub error: Option<String>,
pub description: Option<String>,
pub default_value: Option<String>,
pub data_path: Option<String>,
pub step: Option<String>,
pub list: Option<String>,
pub accept: Option<String>,
pub date_picker: Option<bool>,
}Expand description
Props for Input component.
Fields§
§field: StringForm field name for data binding.
label: String§input_type: InputType§placeholder: Option<String>§required: Option<bool>§disabled: Option<bool>§error: Option<String>§description: Option<String>§default_value: Option<String>§data_path: Option<String>Data path for pre-filling from handler data (e.g., “/data/user/name”).
step: Option<String>HTML step attribute for number inputs (e.g., “any”, “0.01”).
list: Option<String>HTML datalist id for autocomplete suggestions.
When set, renders list="..." on the input and a companion <datalist>
whose options come from a view data key matching this id.
accept: Option<String>HTML accept attribute for input_type = "file". Comma-separated MIME
types or extensions (e.g. "image/jpeg,image/png,image/webp"). Browser-
side filter hint only — server-side MIME validation is the consumer’s
responsibility (the spec layer does not enforce file content type).
date_picker: Option<bool>Progressive enhancement: wrap the native date/time input in the
[data-date-picker] markup so the client-side calendar picker activates.
Valid only for input_type = "date", "time", or "datetime-local".
The native input remains the form value carrier (no-JS fallback intact).
When false or absent, a plain <input> is emitted as usual.
Trait Implementations§
Source§impl Clone for InputProps
impl Clone for InputProps
Source§fn clone(&self) -> InputProps
fn clone(&self) -> InputProps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InputProps
impl Debug for InputProps
Source§impl<'de> Deserialize<'de> for InputProps
impl<'de> Deserialize<'de> for InputProps
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>,
Source§impl JsonSchema for InputProps
impl JsonSchema for InputProps
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more