add 'edited' read-only textbox property

This commit is contained in:
MihailRis
2025-03-12 02:32:41 +03:00
parent 433c12a17a
commit 93f20b1746
5 changed files with 30 additions and 4 deletions
+1
View File
@@ -79,6 +79,7 @@ Properties:
| hint | string | yes | yes | text to display when nothing is entered |
| caret | int | yes | yes | carriage position. `textbox.caret = -1` will set the position to the end of the text |
| editable | bool | yes | yes | text mutability |
| edited | bool | yes | no | is text edited since the last set (history is not empty) |
| multiline | bool | yes | yes | multiline support |
| lineNumbers | bool | yes | yes | display line numbers |
| textWrap | bool | yes | yes | automatic text wrapping (only with multiline: "true") |
+1
View File
@@ -79,6 +79,7 @@ document["worlds-panel"]:clear()
| hint | string | да | да | текст, отображаемый, когда ничего не введено |
| caret | int | да | да | позиция каретки. `textbox.caret = -1` установит позицию в конец текста |
| editable | bool | да | да | изменяемость текста |
| edited | bool | да | нет | был ли изменён текст с последней установки (история не пуста) |
| multiline | bool | да | да | поддержка многострочности |
| lineNumbers | bool | да | да | отображение номеров строк |
| textWrap | bool | да | да | автоматический перенос текста (только при multiline: "true") |