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