Search.../

onIconMouseIn( )

Sets the function that runs when a user's mouse enters one of the rating icons.

Syntax

function onIconMouseIn(handler: IconMouseInEventHandler): RatingsInput
handler: function IconMouseInEventHandler(event: IconMouseInEvent): void

onIconMouseIn Parameters

NAME
TYPE
DESCRIPTION
handler

The name of the function or the function expression to run when the item is ready.

Returns

The element on which the event is now registered.

Return Type:

IconMouseInEventHandler Parameters

NAME
TYPE
DESCRIPTION
event

The event that occurred.

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

Get information about the icon that the mouse entered

Copy Code
1$w("#myRatingsInput").onIconMouseIn( (event) => {
2 let label = event.label; // "Great"
3 let value = event.value; // 4
4} );