Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

value-event-mouse

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

value-event-mouse

value-event handlers for mouse events

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

value-event-mouse Build Status

value-event handlers for mouse events

Install

$ npm install --save value-event-mouse

Usage

var h = require('virtual-dom/h')
var mouseEvent = require('value-event-mouse')

var vtree = h('div', {
  'ev-mouseenter': mouseEvent('enter', function () {
    console.log('mouse entered')
  })
})

Or require a specific event:

var h = require('virtual-dom/h')
var mouseEnter = require('value-event-mouse/enter')

var vtree = h('div', {
  'ev-mouseenter': mouseEnter(function () {
    console.log('mouse entered')
  })
})

API

mouseEvent(name, handler, [data], [options]) -> function

handler, data and options, are passed directly to value-event.

name

Required
Type: string

The name suffix of the mouse event:

  • enter
  • leave
  • move
  • out
  • over

When requiring a name directly (require('value-event-mouse/enter')) the name property is already applied and should be omitted.

handler

Required
Type: function
Arguments: data

A handler to call when the event occurs.

License

MIT © Ben Drucker

Keywords

FAQs

Package last updated on 04 Apr 2016

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