Available on crate feature
textarea only.Expand description
Multi-line text editing.
The app owns the Content and applies each Action in update:
use iced::widget::text_editor::{Action, Content};
use iced_cube::textarea;
#[derive(Debug, Clone)]
enum Message { Edit(Action) }
let content = Content::new();
let view: iced::Element<'_, Message> = textarea(&content)
.placeholder("Write a note")
.on_action(Message::Edit)
.into();Structs§
- Content
- The content of a
TextEditor. - Textarea
- A textarea builder. Convert it into an
Elementto render.
Enums§
Constants§
- MIN_
HEIGHT - Minimum height while the height is
Length::Shrink, roughly three lines.