Extended Events

Evtd has some extend events, you can use them the same as other events.

Supported Events

  • clickoutside
  • mousemoveoutside

Example

import { on, off } from 'evtd'

const handleClickOutside = (e) => console.log('clickoutside', e)

on('clickoutside', el, handleClickOutside)
off('clickoutside', el, handleClickOutside)