[android-components](../../index.md) / [mozilla.components.concept.menu.candidate](../index.md) / [TextMenuCandidate](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/concept/menu/src/main/java/mozilla/components/concept/menu/candidate/MenuCandidate.kt#L32)

Click listener called when this menu option is clicked.

### Property

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