@@ -30,7 +30,6 @@ export class GridLiteOverviewComponent implements OnInit {
3030 private dataService = inject ( GridLiteDataService ) ;
3131
3232 public data : User [ ] = [ ] ;
33- private choices = [ 'Low' , 'Standard' , 'High' ] ;
3433
3534 ngOnInit ( ) {
3635 this . data = this . dataService . generateUsers ( 1000 ) ;
@@ -44,24 +43,6 @@ export class GridLiteOverviewComponent implements OnInit {
4443 return cell ;
4544 } ;
4645
47- protected priorityTemplate = ( params : any ) => {
48- const select = document . createElement ( 'igc-select' ) ;
49- select . setAttribute ( 'outlined' , '' ) ;
50- select . setAttribute ( 'flip' , '' ) ;
51- select . setAttribute ( 'value' , params . value ) ;
52-
53- this . choices . forEach ( choice => {
54- const item = document . createElement ( 'igc-select-item' ) ;
55- item . setAttribute ( 'value' , choice ) ;
56- item . textContent = choice ;
57- select . appendChild ( item ) ;
58- } ) ;
59-
60- return select ;
61- } ;
62-
63- priorityComparer = ( a : string , b : string ) => this . choices . indexOf ( a ) - this . choices . indexOf ( b ) ;
64-
6546 protected satisfactionTemplate = ( params : any ) => {
6647 const rating = document . createElement ( 'igc-rating' ) ;
6748 rating . setAttribute ( 'readonly' , '' ) ;
@@ -74,12 +55,4 @@ export class GridLiteOverviewComponent implements OnInit {
7455 span . textContent = params . value . toLocaleString ( ) ;
7556 return span ;
7657 } ;
77-
78- protected activeTemplate = ( params : any ) => {
79- const checkbox = document . createElement ( 'igc-checkbox' ) ;
80- if ( params . value ) {
81- checkbox . setAttribute ( 'checked' , '' ) ;
82- }
83- return checkbox ;
84- } ;
8558}
0 commit comments