BaseItem.input.on_hover method
on_hover(self, handler: Callable[[t: bool], None]) -> None:
Triggers whenever the item is hovered.
Calling this function on existing hover handler overwrites the handler.
Parameters
-
handler: Callable[[t: bool], None]
method to call on hover event. Uses
boolean
property to determine start and end of hover event. Passnull
to remove the handler.