Mercurial > demo / src/crates/ui/pages/text_edit.slint
1 import { HorizontalBox, GroupBox, TextEdit } from "std-widgets.slint"; 2 import { UiConfig } from "../config.slint"; 3 import { Page } from "page.slint"; 5 export component TextEditPage inherits Page { 7 description: "Similar to LineEdit, but can be used to enter several lines of text. The widget can be imported from \"std-widgets.slint\"."; 15 text: "This is our TextEdit widget, which allows for editing text that spans over multiple paragraphs.\nFor example this line starts in a new paragraph.\n\nWhen the amount of lines - due to wrapping and number of paragraphs - exceeds the available vertical height, a vertical scrollbar is shown that allows scrolling.\nYou may want to enter a bit of text here then in order to make them visible."; 17 enabled: !UiConfig.widgets-disabled; 28 enabled: !UiConfig.widgets-disabled;