---
id: "P:cAlgo.API.MainMenuBottomCustomItem.Handler"
kind: "property"
type: "T:cAlgo.API.MainMenuBottomCustomItem"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/MainMenu/MainMenuBottomCustomItem/Handler/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# MainMenuBottomCustomItem.Handler

Member of [MainMenuBottomCustomItem](https://help.ctrader.com/ctrader-algo/references/Plugin/MainMenu/MainMenuBottomCustomItem/index.md).

## Handler

Get / set handler of bottom item.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
Action Handler {get; set;}
```

Python:

```python
mainMenuBottomCustomItem.Handler: Action
```

### Returns

`Action` — 

Available since cAlgo.API 5.4.

### Examples

C#:

```csharp
var icon = new SvgIcon("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6' fill='#2F4BFF' /></svg>");
var bottomItem = MainMenu.AddBottomItem("My Action", icon);
bottomItem.Handler = () => Print("Bottom item clicked at {0}", Server.Time);
```

Python:

```python
from System import Action
icon = SvgIcon("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6' fill='#2F4BFF' /></svg>")
bottomItem = api.MainMenu.AddBottomItem("My Action", icon)
bottomItem.Handler = Action(lambda: api.Print(f"Bottom item clicked at {api.Server.Time}"))
```

