@@ -8,6 +8,7 @@ interface ifcProperty {
88
99interface 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