Click or drag to resize

ViewManagerExtensionsShowChooserPopupT Method

Shows chooser dialog.

Namespace:  Resto.Front.Api.Extensions
Assembly:  Resto.Front.Api.V7 (in Resto.Front.Api.V7.dll)
Syntax
C#
public static T ShowChooserPopup<T>(
	this IViewManager viewManager,
	string title,
	IList<T> input,
	Func<T, string> namingFunc,
	T selectedItem,
	ButtonWidth buttonWidth = ButtonWidth.Normal
)

Parameters

viewManager
Type: Resto.Front.Api.UIIViewManager
View manager.
title
Type: SystemString
Dialog title.
input
Type: System.Collections.GenericIListT
Items.
namingFunc
Type: SystemFuncT, String
Function to get object's name.
selectedItem
Type: T
Preselected item.
buttonWidth (Optional)
Type: Resto.Front.Api.UIButtonWidth
Button's width in dialog.

Type Parameters

T

Return Value

Type: T
Selected item.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IViewManager. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also