vOn

vOn - directive to listen to DOM events and run some JavaScript when they’re triggered.

@safe
T
vOn
(
T : DH5Obj
)
(
T h5
,
string eventName
,
string value
,
string[] modifiers = null
)

Parameters

h5 T

HTML5 Obj

eventName string

name of event like "click" or "mousemove"

modifiers string[]

"stop","prevent","capture","self","once","passive" for mouse action "left", "right", "middle"

Examples

Meta