IViewManager.ShowQuantityChangerPopup Method |
Shows quantity changer dialog.
Namespace:
Resto.Front.Api.UI
Assembly:
Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll)
SyntaxIReadOnlyCollection<int> ShowQuantityChangerPopup(
string title,
string text,
int minimalQuantity,
int maximalQuantity,
IReadOnlyCollection<(string name, int quantity, int minimalQuantity, int maximalQuantity)> items,
string okBtnText = null,
string cancelBtnText = null
)
Parameters
- title
- Type: System.String
Dialog title. - text
- Type: System.String
Dialog hint text. - minimalQuantity
- Type: System.Int32
Minimal quantity for all items. - maximalQuantity
- Type: System.Int32
Maximal quantity for all items. - items
- Type: System.Collections.Generic.IReadOnlyCollection<ValueTuple<String, Int32, Int32, Int32>>
Items which quantity needs to be changed. - okBtnText (Optional)
- Type: System.String
Ok button text. - cancelBtnText (Optional)
- Type: System.String
Cancel button text.
Return Value
Type:
IReadOnlyCollection<Int32>Actual quantities.
See Also