iikoFront Api V8 Code Reference
iikoFront Api V8 Code Reference
Resto.Front.Api.Extensions
ViewManagerExtensions Class
ViewManagerExtensions Methods
ShowChooserPopup(T) Method

# ViewManagerExtensions ShowChooserPopup T Method

Shows chooser dialog.

Namespace: Resto.Front.Api.Extensions
Assembly: Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll) Version: 1ca4876affdd3bc5359a98b321fc115a647d2251
Syntax
C#
Copy

    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.UI
  IViewManager
  View manager.
title
  Type: System
  String
  Dialog title.
input
  Type: System.Collections.Generic
  IList
  T
  Items.
namingFunc
  Type: System
  Func
  T, String
  Function to get object's name.
selectedItem
  Type: T
  Preselected item.
buttonWidth (Optional)
  Type: Resto.Front.Api.UI
  ButtonWidth
  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

#### Reference

ViewManagerExtensions Class
Resto.Front.Api.Extensions Namespace