Mouse

live example

Explore the API in the live example.

api reference

Mouse()
Component implementing the mouse features. When this component is available for a widget, its API is exposed via the .mouse namespace.
Mouse.click(callback)
Sets the callback for the click event.

Parameters

NameTypeDescription
callbackFunctionFunction to call on click.

Returns

Widget
Reference to the Widget API.
Mouse.leave(callback)
Sets the callback for the leave event.

Parameters

NameTypeDescription
callbackFunctionFunction to call on leave.

Returns

Widget
Reference to the Widget API.
Mouse.over(callback)
Sets the callback for the over event.

Parameters

NameTypeDescription
callbackFunctionFunction to call on over.

Returns

Widget
Reference to the Widget API.