Entry
Single-line text input view.
| Module | require("yue.gui") |
| Type | Class |
| Inherits | View |
Class methods
create()
Create a normal Entry.
Return
Entrycreatetype(type)
Create an Entry with type.
Parameters
Entry::Typetype
Return
EntryMethods
settext(text)
Change the text in the view.
Parameters
stringtext
gettext()
Return currently displayed text.
Return
stringEvents
ontextchange(self)
Emitted when user has changed text.
Parameters
Entryself
Preventable
No.onactivate(self)
Emitted when user has pressed Enter in the view.
Parameters
Entryself