[android-components](../../index.md) / [mozilla.components.ui.widgets](../index.md) / [WidgetSiteItemView](index.md) / [setSecondaryButton](./set-secondary-button.md)

# setSecondaryButton

`fun setSecondaryButton(icon: <ERROR CLASS>?, contentDescription: `[`CharSequence`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)`, onClickListener: (<ERROR CLASS>) -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/ui/widgets/src/main/java/mozilla/components/ui/widgets/WidgetSiteItemView.kt#L72)
`fun setSecondaryButton(@DrawableRes icon: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, @StringRes contentDescription: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, onClickListener: (<ERROR CLASS>) -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/ui/widgets/src/main/java/mozilla/components/ui/widgets/WidgetSiteItemView.kt#L90)

Add a secondary button, such as an overflow menu.

### Parameters

`icon` - Drawable to display in the button.

`contentDescription` - Accessible description of the button's purpose.

`onClickListener` - Listener called when the button is clicked.