ViewManagerExtensionsShowChooserPopupT Method |
Shows chooser dialog.
Namespace: Resto.Front.Api.ExtensionsAssembly: Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll)
Syntaxpublic 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
TSelected 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