[android-components](../../index.md) / [mozilla.components.browser.menu2.candidate](../index.md) / [DrawableButtonMenuIcon](index.md) / [onClick](./on-click.md)

# onClick

`val onClick: () -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/menu2/src/main/java/mozilla/components/browser/menu2/candidate/MenuIcon.kt#L49)

Click listener called when this menu option is clicked.

### Property

`onClick` - Click listener called when this menu option is clicked.