aurelia-interact-utils
v1.0.1
Published
A collection of interaction utilities for Aurelia, such as triggers for typing, return, escapeblur
Downloads
187
Readme
aurelia-interact-utils
This packages allows you to easily listen to user typing events, because it filters out key codes which you do not care about.
Usage
<!-- typing-listener.html -->
<template>
<input type="text"
value.bind="text"
typing-trigger
typing.delegate="onTyping()"
>
<template>
// typing-listener.js
export class TypingListener {
private text;
public onTyping(): void {
console.log(`User entered: ${this.text}`);
}
}
Building
$ npm install -g aurelia-cli
$ au build