New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@riot-material/before-focus-listener

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@riot-material/before-focus-listener

You can install it via nodejs ```sh npm install @riot-material/before-focus-listener ``` or download one of the bundled file ```js /* `dist/index.amd.js` or `dist/index.umd.js` */ requirejs.config({ paths: { "@riot-material/before-focus-lis

  • 2.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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<T>(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

FAQs

Package last updated on 01 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc