<< Click to Display Table of Contents >> Navigation: IWML > Tags > Controls > Edit |
The Edit control implements a single-line text input field. It is one of the most fundamental controls in IWML, allowing users to enter and edit text. It can be used for names, search queries, or any textual input.
The Edit control also supports auto-completion via a built-in suggestion list, which appears when the user starts typing.
Syntax:
Edit[:Name] [Default Text]
•Name — optional ID to reference in logic.
•Default Text — the initial value shown inside the input.
Properties:
•Text — the current value of the input field.
•Hint — tooltip that appears on hover.
•AutoCompletes — a list of strings used to populate the input's autocomplete dropdown.
Events:
•TextHasChanged — triggered when the input changes.
•KeyDown, KeyUp, KeyPressed — provide full keyboard event handling.
For AutoCompletes to work, some browsers require the user to type at least 2 characters before showing suggestions.
Try It
Edit:CountryInput Bulgaria
Hint: Start typing a country name
AutoCompletes:
Bulgaria
Canada
Cyprus
France
Jordan
Russia
Switzerland
Turkey
]
]