Method AddContextMenuAction
- Namespace
- Alternet.Scripter.Debugger.UI.AlternetUI
- Assembly
- Alternet.Scripter.Debugger.UI.AlternetUI.v10.dll
AddContextMenuAction(string, Action)
Adds a custom action to the context menu with the specified title.
void AddContextMenuAction(string title, Action action)
Parameters
title
stringThe title of the context menu action. This is displayed to the user.
action
ActionThe callback to execute when the context menu action is selected. Cannot be null.
Remarks
Use this method to dynamically add actions to a context menu.
The title
should be descriptive and concise to ensure
clarity for the user.