Events
Common events which are supported by NedilJS are listed below. Other events can also be used if the browser support them.
Mouse Events
EventDescription
clickListener will be invoked if the element is clicked
dblclickListener will be invoked if the element is double clicked
mouseoverListener will be invoked if mouse pointer enters into the element
mouseoutListener will be invoked if mouse pointer moves out of the element
mousemoveListener will be invoked if mouse pointer moves over the element
mouseupListener will be invoked if mouse button is pressed down
mousedownListener will be invoked if mouse button is released
Keyboard Events
EventDescription
keypressListener will be invoked if a key press action is complete (down and Up)
keyupListener will be invoked if a key is released up
keydownListener will be invoked if a key is pressed down
Form and Input element Events
EventDescription
blurListener will be invoked if an element(input) loses focus
focusListener will be invoked if an element(input) gains focus
changeListener will be invoked if there is a change in the element value
selectListener will be invoked if an element(input) values is selected in dropdown
submitListener will be invoked if a form is submitted
Window Events
EventDescription
resizeListener will be invoked when window resizes
scrollListener will be invoked if an element is scrolled