# offMenuItemTap

## tt.offMenuItemTap(function fn)

Cancels listening for user clicks on the workbench widget menu.

## input

**function fn(Object param)**

| **Attribute** | **Type** | **Description** |
| --------- | ------------- | ------------ |
| menuItem | object | The description data of the clicked menu item |
|  ∟ key | string | Unique identifier for menu item |
| ∟ iconUrl | string | URL of menu item's icon |
| ∟ name | i18n<string> | The name of the menu item, supports internationalization |

## Example

### code example
```json
{
   "tab": "api",
   "item": "onMenuItemTap"
   }
```

```js
const fn = ({ key, name, iconUrl }) => {
     console.log('menu item', key, 'clicked');
};

tt.onMenuItemyTap(fn);

// Cancel the listener at a certain time
tt.offMenuItemTap(fn);
```

## Tip

None.