android-components / mozilla.components.browser.menu.item / SimpleBrowserMenuItem

# SimpleBrowserMenuItem

`class SimpleBrowserMenuItem : BrowserMenuItem` (source)

A simple browser menu item displaying text.

### Parameters

`label` - The visible label of this menu item.

`listener` - Callback to be invoked when this menu item is clicked.

### Constructors

<init> | `SimpleBrowserMenuItem(label: String, listener: () -> Unit)` A simple browser menu item displaying text.

### Properties

visible | `var visible: () -> Boolean` Lambda expression that returns true if this item should be shown in the menu. Returns false if this item should be hidden.

### Functions

bind | `fun bind(menu: BrowserMenu, view: View): Unit` Called by the browser menu to display the data of this item using the passed view.
getLayoutResource | `fun getLayoutResource(): <ERROR CLASS>` Returns the layout resource ID of the layout to be inflated for showing a menu item of this type.