pub struct TextInputProps {Show 20 fields
pub layout: LayoutStyle,
pub enabled: bool,
pub focusable: bool,
pub model: Model<String>,
pub a11y_label: Option<Arc<str>>,
pub a11y_role: Option<SemanticsRole>,
pub test_id: Option<Arc<str>>,
pub placeholder: Option<Arc<str>>,
pub obscure_text: bool,
pub a11y_required: bool,
pub a11y_invalid: Option<SemanticsInvalid>,
pub active_descendant: Option<NodeId>,
pub active_descendant_element: Option<u64>,
pub controls_element: Option<u64>,
pub expanded: Option<bool>,
pub chrome: TextInputStyle,
pub focus_ring_always_paint: bool,
pub text_style: TextStyle,
pub submit_command: Option<CommandId>,
pub cancel_command: Option<CommandId>,
}Fields§
§layout: LayoutStyle§enabled: bool§focusable: bool§model: Model<String>§a11y_label: Option<Arc<str>>§a11y_role: Option<SemanticsRole>§test_id: Option<Arc<str>>§placeholder: Option<Arc<str>>§obscure_text: boolWhen true, visually obscures the rendered text (e.g. password fields) while keeping the underlying model value unchanged.
a11y_required: bool§a11y_invalid: Option<SemanticsInvalid>§active_descendant: Option<NodeId>§active_descendant_element: Option<u64>Declarative-only: element ID of the active descendant for composite widgets.
This is an authoring convenience for aria-activedescendant-style relationships where the
target is another declarative element. The runtime resolves this into a NodeId during
semantics snapshot production.
controls_element: Option<u64>Declarative-only: element ID of a node which this text input controls.
This is an authoring convenience for relationships like aria-controls where the target
is another declarative element. The runtime resolves this into a NodeId during semantics
snapshot production.
expanded: Option<bool>§chrome: TextInputStyle§focus_ring_always_paint: boolWhen true, paints the focus ring even if focus-visible is currently false.
This exists to support CSS-like transition-[..., box-shadow] semantics where the ring
animates out after blur. Policy code is expected to drive ring alpha to zero and set this
flag only while the transition is animating.
text_style: TextStyle§submit_command: Option<CommandId>§cancel_command: Option<CommandId>Implementations§
Trait Implementations§
Source§impl Clone for TextInputProps
impl Clone for TextInputProps
Source§fn clone(&self) -> TextInputProps
fn clone(&self) -> TextInputProps
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more