feat: add styleClass as an option to Dialogs.
This commit is contained in:
@@ -217,6 +217,11 @@ public static class Drawer
|
||||
if(options.MinHeight is not null) drawer.MinHeight = options.MinHeight.Value;
|
||||
if(options.MaxHeight is not null) drawer.MaxHeight = options.MaxHeight.Value;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(options.StyleClass))
|
||||
{
|
||||
drawer.Classes.Add(options.StyleClass!);
|
||||
}
|
||||
}
|
||||
|
||||
private static void ConfigureDefaultDrawer(DefaultDrawerControl drawer, DrawerOptions? options)
|
||||
@@ -239,5 +244,9 @@ public static class Drawer
|
||||
if(options.MinHeight is not null) drawer.MinHeight = options.MinHeight.Value;
|
||||
if(options.MaxHeight is not null) drawer.MaxHeight = options.MaxHeight.Value;
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(options.StyleClass))
|
||||
{
|
||||
drawer.Classes.Add(options.StyleClass!);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user