Input
A controlled, core-owned text editor with native keyboard and text services.
Loading interactive demo…
text_input(name.as_str())
.placeholder("Name")
.on_input(edit)#Import
Import text_input from quickgui.
use quickgui::*;#Usage
text_input(name.as_str())
.placeholder("Name")
.on_input(edit)#API reference
Expand an entry for its description and complete signature. A dash means no declaration default is documented.
text_input
View sourcepub fn text_input(value: impl Into<Arc<str>>) -> ElementCreate a controlled, single-line text input. Attach a stable [`crate::InputListener`] with [`Element::on_input`].
on_inputpub fn on_input<V>(mut self, listener: crate::InputListener<V>) -> Self—
Attach a controlled-value listener registered by [`crate::ViewContext::input_listener`].
pub fn on_input<V>(mut self, listener: crate::InputListener<V>) -> SelfView sourceplaceholderpub fn placeholder(mut self, placeholder: impl Into<Arc<str>>) -> Self—
Set placeholder text for a [`text_input`] element.
pub fn placeholder(mut self, placeholder: impl Into<Arc<str>>) -> SelfView source