aurelia-interact-utils

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i aurelia-interact-utils

Weekly Downloads

37

Version

1.0.1

License

MIT

Unpacked Size

66.3 kB

Total Files

47

Last publish

Collaborators

  • tomtomau