Debounce Input
Waits until the user stops typing before it reports the value — one request per search instead of one per keystroke. Enter reports at once.
Part of @tectra-ng/utils (npm install @tectra-ng/utils, also included in tectra-ng).
Basic
Type quickly: the list filters once you pause for 400 ms, and the counter shows how many searches ran.
Searches run: 0 · query “”
| Kyiv |
| Lviv |
| Odesa |
| Kharkiv |
| Dnipro |
| Lutsk |
| Uzhhorod |
| Poltava |
Enter
A long pause, but Enter reports at once. exportAs gives flush() and cancel() to the template.
Saved: —
Distinct and min length
minLength waits for three characters (an emptied field still reports), distinct skips a repeat of the last value — type, delete and retype a letter.
Reported: —
Icon field
On a wrapper: the directive hears the input events of the field inside tx-icon-field.