TextArea
Input と同じ制御値の規約を持つ、複数行テキスト編集プリミティブです。
デモを読み込み中…
text_area(notes.as_str())
.placeholder("Notes")
.on_input(edit)#インポート
quickgui から text_area をインポートします。
use quickgui::*;#使い方
text_area(notes.as_str())
.placeholder("Notes")
.on_input(edit)#API リファレンス
項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。
text_area
ソースを見るpub fn text_area(value: impl Into<Arc<str>>) -> ElementCreate a controlled, multiline text area with web-style soft wrapping. Attach a stable [`crate::InputListener`] with [`Element::on_input`]. Use [`Element::no_wrap`] for code-editor-style horizontal scrolling.
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>) -> Selfソースを見るplaceholderpub 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>>) -> Selfソースを見る