The PropertyViewBuilder provides a fluent API to construct a PropertyViewModel. You use the builder to define categories, sections, properties, and messages. The process typically follows this hierarchy: PropertyViewBuilder -> PropertyViewCategoryBuilder -> PropertyViewSectionBuilder -> (PropertyViewPropertyBuilder or PropertyViewMessageBuilder).
To finish the construction, call .build() on the top-level builder.
import { PropertyViewService } from '@clr/addons/property-view';
// Inside a component or service
const builder = this.propertyViewService.createPropertyViewBuilder();
const viewModel = builder
.category('cat1', 0)
.title('General Information')
.section('sec1')
.title('System Details')
.property('Version', '1.0.0')
.exit()
.exit()
.build();