Package Exports
- simulate-event
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (simulate-event) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Simulate Event
Simply trigger DOM events on any element.
Installation
npm install simulate-event --save-devUsage
// Simulate an event on an element
simulateEvent.simulate(document.body, 'click');
// Generate an event for custom use
var evt = simulateEvent.generate('click', { clientX: 10 });License
MIT