pub struct TextInputData {
pub name: String,
pub label: Option<String>,
pub placeholder: Option<String>,
pub input_type: &'static str,
pub update_event: UpdateEvent,
}Expand description
Data used for the text input control.
Fields§
§name: String§label: Option<String>§placeholder: Option<String>§input_type: &'static str§update_event: UpdateEventTrait Implementations§
Source§impl Clone for TextInputData
impl Clone for TextInputData
Source§fn clone(&self) -> TextInputData
fn clone(&self) -> TextInputData
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<FD: FormToolData> ControlData<FD> for TextInputData
impl<FD: FormToolData> ControlData<FD> for TextInputData
Source§type ReturnType = String
type ReturnType = String
This is the data type returned by this control. Usually a
String.Source§fn render_control<FS: FormStyle>(
fs: &FS,
_fd: RwSignal<FD>,
control: ControlRenderData<FS, Self>,
value_getter: Signal<Self::ReturnType>,
value_setter: SignalSetter<Self::ReturnType>,
validation_state: Signal<ValidationState>,
) -> AnyView
fn render_control<FS: FormStyle>( fs: &FS, _fd: RwSignal<FD>, control: ControlRenderData<FS, Self>, value_getter: Signal<Self::ReturnType>, value_setter: SignalSetter<Self::ReturnType>, validation_state: Signal<ValidationState>, ) -> AnyView
Builds the control, returning the
AnyView that was built.Source§impl Debug for TextInputData
impl Debug for TextInputData
Source§impl Default for TextInputData
impl Default for TextInputData
impl Eq for TextInputData
Source§impl Hash for TextInputData
impl Hash for TextInputData
Source§impl Ord for TextInputData
impl Ord for TextInputData
Source§fn cmp(&self, other: &TextInputData) -> Ordering
fn cmp(&self, other: &TextInputData) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TextInputData
impl PartialEq for TextInputData
Source§impl PartialOrd for TextInputData
impl PartialOrd for TextInputData
impl StructuralPartialEq for TextInputData
impl<FD: FormToolData> ValidatedControlData<FD> for TextInputData
Auto Trait Implementations§
impl Freeze for TextInputData
impl RefUnwindSafe for TextInputData
impl Send for TextInputData
impl Sync for TextInputData
impl Unpin for TextInputData
impl UnsafeUnpin for TextInputData
impl UnwindSafe for TextInputData
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> MaybeSendSync for T
Source§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.