mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-29 11:07:37 +00:00
material: Put back missing callbacks (https://github.com/slint-ui/material-components/issues/43)
Imported from 5c84c4348b
This commit is contained in:
parent
a9a1403f26
commit
180c1d09df
1 changed files with 10 additions and 0 deletions
|
|
@ -74,6 +74,16 @@ The icon displayed at the end of the search bar.
|
||||||
|
|
||||||
## Callbacks
|
## Callbacks
|
||||||
|
|
||||||
|
|
||||||
|
### action(index: int)
|
||||||
|
Invoked when a search result item action is triggered.
|
||||||
|
|
||||||
|
### accepted(text: string)
|
||||||
|
Invoked when the user presses Enter in the search bar.
|
||||||
|
|
||||||
|
### edited(text: string)
|
||||||
|
Invoked when the text in the search bar changes.
|
||||||
|
|
||||||
### key_pressed(event: KeyEvent) -> EventResult
|
### key_pressed(event: KeyEvent) -> EventResult
|
||||||
Invoked when a key is pressed in the search bar.
|
Invoked when a key is pressed in the search bar.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue