Skip to content

Builders

Mika Berglund edited this page Mar 1, 2020 · 1 revision

Builder Infrastructure

Blazorade.Core comes with a builder infrastructure that helps with making your UI markup more readable. There are different builders for inline CSS styles, classes and attributes.

Say you are building a UI that uses HTML classes extensively, like many of the popular UI frameworks do. Instead of writing your logic to produce the necessary classes as inline code in your .razor file, you could write that logic into a class builder, and specify it on the ClassBuilder parameter on your component.

To make your class builder implementation more useful, you could implement it using fluent interface patterns to provide function chaining.

Default Implementations

The following default implementations are included with Blazorade.Core. You are encouraged to use these as base class for your own implementations.

Clone this wiki locally