Skip to content

Commit e898dd2

Browse files
committed
Add description to property groups
1 parent c21886f commit e898dd2

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

examples/simple-angular/src/app/property-menu/property-menu.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
>
88
<mat-expansion-panel-header>
99
<mat-panel-title> {{ propertyGroup.name }} </mat-panel-title>
10-
<mat-panel-description> This is a summary of the content </mat-panel-description>
10+
<mat-panel-description> {{ propertyGroup.description }} </mat-panel-description>
1111
</mat-expansion-panel-header>
1212

1313
<mat-divider></mat-divider>

examples/simple-angular/src/app/property-menu/property-menu.component.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ interface ifcProperty {
88

99
interface ifcPropertyGroup {
1010
name: string;
11+
description: string;
1112
props: ifcProperty[];
1213
}
1314

@@ -21,6 +22,7 @@ export class PropertyMenuComponent implements OnInit {
2122
properties: ifcPropertyGroup[] = [
2223
{
2324
name: '01',
25+
description: 'Hello!',
2426
props: [
2527
{ name: 'asdf', value: 'asdf' },
2628
{ name: 'asdf', value: 'asdf' },
@@ -30,6 +32,7 @@ export class PropertyMenuComponent implements OnInit {
3032
},
3133
{
3234
name: '02',
35+
description: 'Hello!',
3336
props: [
3437
{ name: 'asdf', value: 'asdf' },
3538
{ name: 'asdf', value: 'asdf' },
@@ -69,14 +72,18 @@ export class PropertyMenuComponent implements OnInit {
6972

7073
getPropertyGroups(props: any): ifcPropertyGroup[] {
7174
const psets = props.psets.map((p: any) => {
72-
return { name: 'Property set', props: this.getProps(p) };
75+
return { name: 'Property set', description: 'Properties defined by the user', props: this.getProps(p) };
7376
});
7477
delete props.psets;
7578
const type = props.type.map((p: any) => {
76-
return { name: 'Type properties', props: this.getProps(p) };
79+
return { name: 'Type properties', description: 'Properties defined by the type of element', props: this.getProps(p) };
7780
});
7881
delete props.type;
79-
props = { name: 'Native properties', props: this.getProps(props) };
82+
props = {
83+
name: 'Native properties',
84+
description: 'Properties contained in the IFC class',
85+
props: this.getProps(props)
86+
};
8087
return [props, ...psets, ...type];
8188
}
8289

0 commit comments

Comments
 (0)