Ejemplo n.º 1
0
 public static ValueTask ShowAsync <T>(this IFlyoutPanelService service, string title, object parameters, params ButtonDescriptor[] buttons) where T : ComponentBase =>
 service.ShowAsync <T>(new FlyoutPanelOptions
 {
     Title      = title,
     Buttons    = buttons,
     Parameters = parameters.ToDictionary()
 });
Ejemplo n.º 2
0
 public static ValueTask ShowAsync <T>(this IFlyoutPanelService service, FlyoutPanelOptions options) where T : ComponentBase =>
 service.ShowAsync(new FlyoutPanelOptions
 {
     ContentComponentType = typeof(T),
     Buttons    = options.Buttons,
     Parameters = options.Parameters,
     Title      = options.Title
 });
Ejemplo n.º 3
0
 public static ValueTask ShowAsync <T>(this IFlyoutPanelService service, string title) where T : ComponentBase =>
 service.ShowAsync <T>(new FlyoutPanelOptions
 {
     Title = title
 });