pub struct TextInput {
pub on_text_input: Callback,
pub on_virtual_key_down: Callback,
pub state: Ref<TextInputState>,
}
Fields§
§on_text_input: Callback
§on_virtual_key_down: Callback
§state: Ref<TextInputState>
Implementations§
Source§impl TextInput
impl TextInput
pub fn new(state: Ref<TextInputState>) -> Self
pub fn with_state(self, state: Ref<TextInputState>) -> Self
pub fn on_text_input(self, callback: Callback) -> Self
pub fn on_virtual_key_down(self, callback: Callback) -> Self
pub fn dom(self) -> Dom
pub fn default_on_text_input(info: CallbackInfo<'_>) -> CallbackReturn
pub fn default_on_virtual_key_down(info: CallbackInfo<'_>) -> CallbackReturn
Trait Implementations§
impl Eq for TextInput
impl StructuralPartialEq for TextInput
Auto Trait Implementations§
impl Freeze for TextInput
impl !RefUnwindSafe for TextInput
impl !Send for TextInput
impl !Sync for TextInput
impl Unpin for TextInput
impl !UnwindSafe for TextInput
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)