IOperationServiceAddButtonToPastOrderScreen Method |
Adds a button for past orders to the closed order screen.
Namespace: Resto.Front.ApiAssembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
SyntaxIDisposable AddButtonToPastOrderScreen(
string caption,
Action<(IViewManager vm, PastOrder pastOrder, OrganizationDetailsInfo organizationDetailsInfo)> callback,
string iconGeometry = null
)
Parameters
- caption String
-
Text to display on the button
- callback ActionValueTupleIViewManager, PastOrder, OrganizationDetailsInfo
-
Button click event handler.
- iconGeometry String (Optional)
-
Path geometry to show icon on the button. Path markup syntax is described here: https://docs.microsoft.com/en-us/dotnet/desktop/wpf/graphics-multimedia/path-markup-syntax?view=netframeworkdesktop-4.8
Return Value
IDisposable
Remarks
Use method's return value to remove the button or it will be automatically removed when plugin is unloaded.
See Also