A helper class for building a string of CSS class names.
public readonly struct ClassNamesBuilder| Constructors | |
|---|---|
| ClassNamesBuilder(string, string, string) | A helper class for building a string of CSS class names. |
| Methods | |
|---|---|
| AddClass(string) | Adds a class name to the builder. |
| AddClass(string, bool) | Adds a class name to the builder if the condition is true. |
| AddClass(string, Func<bool>) | Adds a class name to the builder if the result of the function is true. |
| AddRawValue(string) | Adds a raw value to the builder. |
| Build() | Builds the string of class names. |
| Default(string) | Creates a new instance of ClassNamesBuilder. |
| Empty() | Creates a new instance of ClassNamesBuilder with a prefix. |
| ToString() | Builds the string of class names. |