Click or drag to resize

IViewManagerShowQuantityChangerPopup Method

Shows quantity changer dialog.

Namespace:  Resto.Front.Api.UI
Assembly:  Resto.Front.Api.V8 (in Resto.Front.Api.V8.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
Type: SystemString
Dialog title.
text
Type: SystemString
Dialog hint text.
minimalQuantity
Type: SystemInt32
Minimal quantity for all items.
maximalQuantity
Type: SystemInt32
Maximal quantity for all items.
items
Type: System.Collections.GenericIReadOnlyCollectionValueTupleString, Int32, Int32, Int32
Items which quantity needs to be changed.
okBtnText (Optional)
Type: SystemString
Ok button text.
cancelBtnText (Optional)
Type: SystemString
Cancel button text.

Return Value

Type: IReadOnlyCollectionInt32
Actual quantities.
See Also