[android-components](../../index.md) / [mozilla.components.browser.menu2.view](../index.md) / [MenuButton2](index.md) / [menuController](./menu-controller.md)

# menuController

`var menuController: `[`MenuController`](../../mozilla.components.concept.menu/-menu-controller/index.md)`?` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/menu2/src/main/java/mozilla/components/browser/menu2/view/MenuButton2.kt#L44)

Overrides [MenuButton.menuController](../../mozilla.components.concept.menu/-menu-button/menu-controller.md)

Sets a [MenuController](../../mozilla.components.concept.menu/-menu-controller/index.md) that will be used to create a menu when this button is clicked.

