Click or drag to resize

ViewManagerExtensionsShowChooserPopupT Method

Shows chooser dialog.

Namespace: Resto.Front.Api.Extensions
Assembly: Resto.Front.Api.V8 (in Resto.Front.Api.V8.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  IViewManager
View manager.
title  String
Dialog title.
input  IListT
Items.
namingFunc  FuncT, String
Function to get object's name.
selectedItem  T
Preselected item.
buttonWidth  ButtonWidth  (Optional)
Button's width in dialog.

Type Parameters

T

Return Value

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