2.0.0 • Published 3 years ago

@riot-material/before-focus-listener v2.0.0

Weekly downloads
11
License
MIT
Repository
-
Last release
3 years ago

app-bar utilities based on Material Design for riot-material

Installation

You can install it via nodejs

npm install @riot-material/before-focus-listener

or download one of the bundled file

/* `dist/index.amd.js` or `dist/index.umd.js` */
requirejs.config({
  paths: {
    "@riot-material/before-focus-listener": "path/to/@riot-material/before-focus-listener",
  },
});

require(['@riot-material/before-focus-listener'], function (beforeFocusListener) {
    // ...
});

/* `dist/index.js` */
import * as beforeFocusListener from "@riot-material/before-focus-listener";

// or

import { ... } from "@riot-material/before-focus-listener";

otherwise you can include the script in your project html

<script src="@riot-material/before-focus-listener/index.umd.js" />

and access it via

window.riotMaterial.beforeFocusListener;

Documentation

addListener\(element: HTMLElement, handler: (this: T, event: TouchEvent | MouseEvent) => void, context?: T): void

element: HTMLElement
handler: (this: T, event: TouchEvent | MouseEvent) => void
context?: T

removeListener(element: HTMLElement, handler: (event: TouchEvent | MouseEvent) => void): void

element: HTMLElement
handler: (event: TouchEvent | MouseEvent) => void

2.0.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago