mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Add set-selection-offsets
function to TextInput, TextEdit, and LineEdit (#4197)
The function accepts two arguments that specify the start and the end of the text to select. Fixes #4164
This commit is contained in:
parent
ed54581aa1
commit
3e8940660b
23 changed files with 233 additions and 1 deletions
|
@ -20,6 +20,10 @@ export component LineEditBase inherits Rectangle {
|
|||
callback accepted( /* text */ string);
|
||||
callback edited(/* text */ string);
|
||||
|
||||
public function set-selection-offsets(start: int, end: int) {
|
||||
i-text-input.set-selection-offsets(start, end);
|
||||
}
|
||||
|
||||
public function select-all() {
|
||||
i-text-input.select-all();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue