Click or drag to resize

IViewManagerShowQuantityChangerPopup Method

Shows quantity changer dialog.

Namespace: Resto.Front.Api.UI
Assembly: Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax
C#
IReadOnlyCollection<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  String
Dialog title.
text  String
Dialog hint text.
minimalQuantity  Int32
Minimal quantity for all items.
maximalQuantity  Int32
Maximal quantity for all items.
items  IReadOnlyCollectionValueTupleString, Int32, Int32, Int32
Items which quantity needs to be changed.
okBtnText  String  (Optional)
Ok button text.
cancelBtnText  String  (Optional)
Cancel button text.

Return Value

IReadOnlyCollectionInt32
Actual quantities.
See Also