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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    64
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    64
  • 1.0.0
    0

Package Sidebar

Install

npm i aurelia-interact-utils

Weekly Downloads

64

Version

1.0.1

License

MIT

Unpacked Size

66.3 kB

Total Files

47

Last publish

Collaborators

  • tomtomau