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

@groupby/elements-dom-events-plugin

Package Overview
Dependencies
Maintainers
12
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@groupby/elements-dom-events-plugin

This package contains the GB Elements `DomEventsPlugin` class.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
12
Weekly downloads
 
Created
Source

GroupBy Elements DOM Events Plugin

This package contains the GB Elements DomEventsPlugin class.

Usage

To use the DomEventsPlugin, first instantiate it and then register it with the Core entity:

const domEventsPlugin = new DomEventsPlugin(/* options */);
core.register(domEventsPlugin);

The plugin's constructor takes an optional options object. Please refer to the DomEventsPluginOptions interface in src/dom-events-plugin.ts for more details on available options.

Methods

registerListener()

Use the registerListener method to register event listeners. The method takes an eventName and a callback function.

registerListener(eventName, callback);

unregisterListener()

Use the unregisterListener method to unregister event listeners. The method takes an eventName and a callback function.

unregisterListener(eventName, callback);

dispatchEvent()

Use the dispatchEvent method to dispatch events. The method takes an eventName and an option payload which can be used to send information with the dispatched event.

dispatchEvent(eventName, payload);

FAQs

Package last updated on 29 Nov 2019

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