invoke

operator fun OnClick.invoke(block: OnClick)

Sets the onClick action for the item.

Parameters

block

The action to be performed when the item is clicked.