IOperationServiceAddButtonToDeliveriesScreen Method |
Adds a button to the deliveries screen.
Namespace:
Resto.Front.Api
Assembly:
Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax (Guid buttonId, IDisposable buttonRegistration) AddButtonToDeliveriesScreen(
string caption,
bool isChecked,
bool isEnabled,
Action<(IViewManager vm, (Guid , string , bool , string ) state)> callback,
string iconGeometry = null
)
Parameters
- caption
- Type: SystemString
Text to display on the button
- isChecked
- Type: SystemBoolean
Indicates whether the button is checked.
- isEnabled
- Type: SystemBoolean
Is the button available for user interaction.
- callback
- Type: SystemActionValueTupleIViewManager, ValueTupleGuid, String, Boolean, String
Button click event handler.
- iconGeometry (Optional)
- Type: SystemString
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
Type:
ValueTupleGuid,
IDisposableRemarks
Use method's return value to remove the button or it will be automatically removed when plugin is unloaded.
See Also