@@ -14,7 +14,8 @@ import {
1414 IgxSelectItemComponent ,
1515 IgxInputGroupComponent ,
1616 IgxLabelDirective ,
17- IgxInputDirective
17+ IgxInputDirective ,
18+ IgxColumnGroupComponent
1819} from 'igniteui-angular' ;
1920
2021@Component ( {
@@ -24,6 +25,7 @@ import {
2425 imports : [
2526 IgxGridComponent ,
2627 IgxColumnComponent ,
28+ IgxColumnGroupComponent ,
2729 IgxTreeGridComponent ,
2830 IgxHierarchicalGridComponent ,
2931 IgxRowIslandComponent ,
@@ -59,7 +61,11 @@ export class GridPdfExportSampleComponent {
5961 { ID : 5 , Name : 'Product E' , Category : 'Clothing' , Price : 79.99 , InStock : true , LaunchDate : new Date ( 2023 , 4 , 12 ) } ,
6062 { ID : 6 , Name : 'Product F' , Category : 'Electronics' , Price : 899.99 , InStock : false , LaunchDate : new Date ( 2023 , 5 , 8 ) } ,
6163 { ID : 7 , Name : 'Product G' , Category : 'Books' , Price : 24.99 , InStock : true , LaunchDate : new Date ( 2023 , 6 , 22 ) } ,
62- { ID : 8 , Name : 'Product H' , Category : 'Clothing' , Price : 39.99 , InStock : true , LaunchDate : new Date ( 2023 , 7 , 18 ) }
64+ { ID : 8 , Name : 'Product H' , Category : 'Clothing' , Price : 39.99 , InStock : true , LaunchDate : new Date ( 2023 , 7 , 18 ) } ,
65+ { ID : 9 , Name : 'Product I' , Category : 'Electronics' , Price : 1299.99 , InStock : true , LaunchDate : new Date ( 2023 , 8 , 5 ) } ,
66+ { ID : 10 , Name : 'Product J' , Category : 'Books' , Price : 34.99 , InStock : true , LaunchDate : new Date ( 2023 , 9 , 14 ) } ,
67+ { ID : 11 , Name : 'Product K' , Category : 'Clothing' , Price : 89.99 , InStock : false , LaunchDate : new Date ( 2023 , 10 , 3 ) } ,
68+ { ID : 12 , Name : 'Product L' , Category : 'Electronics' , Price : 449.99 , InStock : true , LaunchDate : new Date ( 2023 , 11 , 1 ) }
6369 ] ;
6470
6571 // Tree Grid data
@@ -71,7 +77,11 @@ export class GridPdfExportSampleComponent {
7177 { ID : 5 , ParentID : - 1 , Name : 'Furniture' , Budget : 3000 } ,
7278 { ID : 6 , ParentID : 5 , Name : 'Chairs' , Budget : 800 } ,
7379 { ID : 7 , ParentID : 5 , Name : 'Desks' , Budget : 1200 } ,
74- { ID : 8 , ParentID : 5 , Name : 'Cabinets' , Budget : 1000 }
80+ { ID : 8 , ParentID : 5 , Name : 'Cabinets' , Budget : 1000 } ,
81+ { ID : 9 , ParentID : - 1 , Name : 'Office Supplies' , Budget : 2500 } ,
82+ { ID : 10 , ParentID : 9 , Name : 'Paper Products' , Budget : 600 } ,
83+ { ID : 11 , ParentID : 9 , Name : 'Writing Instruments' , Budget : 400 } ,
84+ { ID : 12 , ParentID : 9 , Name : 'Storage Solutions' , Budget : 1500 }
7585 ] ;
7686
7787 // Hierarchical Grid data
@@ -82,16 +92,29 @@ export class GridPdfExportSampleComponent {
8292 Revenue : 1000000 ,
8393 Employees : [
8494 { ID : 1 , Name : 'John Doe' , Position : 'Manager' , Salary : 80000 } ,
85- { ID : 2 , Name : 'Jane Smith' , Position : 'Developer' , Salary : 70000 }
95+ { ID : 2 , Name : 'Jane Smith' , Position : 'Developer' , Salary : 70000 } ,
96+ { ID : 3 , Name : 'Mike Wilson' , Position : 'Developer' , Salary : 72000 }
8697 ]
8798 } ,
8899 {
89100 ID : 2 ,
90101 CompanyName : 'Company B' ,
91102 Revenue : 2000000 ,
92103 Employees : [
93- { ID : 3 , Name : 'Bob Johnson' , Position : 'CEO' , Salary : 150000 } ,
94- { ID : 4 , Name : 'Alice Brown' , Position : 'Designer' , Salary : 65000 }
104+ { ID : 4 , Name : 'Bob Johnson' , Position : 'CEO' , Salary : 150000 } ,
105+ { ID : 5 , Name : 'Alice Brown' , Position : 'Designer' , Salary : 65000 } ,
106+ { ID : 6 , Name : 'Carol Davis' , Position : 'Developer' , Salary : 75000 }
107+ ]
108+ } ,
109+ {
110+ ID : 3 ,
111+ CompanyName : 'Company C' ,
112+ Revenue : 1500000 ,
113+ Employees : [
114+ { ID : 7 , Name : 'David Lee' , Position : 'Manager' , Salary : 85000 } ,
115+ { ID : 8 , Name : 'Emma Taylor' , Position : 'Analyst' , Salary : 68000 } ,
116+ { ID : 9 , Name : 'Frank Martinez' , Position : 'Developer' , Salary : 73000 } ,
117+ { ID : 10 , Name : 'Grace Anderson' , Position : 'Designer' , Salary : 67000 }
95118 ]
96119 }
97120 ] ;
0 commit comments