Click or drag to resize

IOperationServiceAddButtonToPluginsMenu Method

Adds a button to plugins menu on the additional operations screen.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll)
Syntax
C#
IDisposable AddButtonToPluginsMenu(
	string caption,
	Action<(IViewManager vm, IReceiptPrinter printer)> callback
)

Parameters

caption
Type: SystemString
Text to display on the button
callback
Type: SystemActionValueTupleIViewManager, IReceiptPrinter
Button click event handler.

Return Value

Type: IDisposable
Remarks
Use method's return value to remove the button or it will be automatically removed when plugin is unloaded.
See Also