BaseItem.input.on_click method
on_click(self, handler: Callable[[], None]) -> None:
Triggers whenever the main input is pressed and released inside of this item.
Calling this function on an existing click handler overwrites the handler.
Parameters
-
handler: Callable[[], None]
function to call after click. Pass
null
to remove the handler.