Support library for PSC.Blazor.Components
License
—
Deps
1
Install Size
—
Vulns
✓ 0
Published
Dec 1, 2021
$ dotnet add package PSC.Blazor.Components.CommonThis library contains some useful classes for other Blazor components
Generates a CSS class based on the requirements
protected string GetModalCss() => new ClassBuilder()
.Add("modal-dialog")
.AddIf("modal-sm", ModalModel.Options.Size == ModalSize.Small)
.ToString();
This function helps to add Razor component in other Razor components.