@ViewChild('updateFailedString', { static: false }) updateFailedString: StringComponent;
@ViewChild('deleteFailedString', { static: true }) deleteFailedString: StringComponent;
@ViewChild('deleteSuccessString', { static: true }) deleteSuccessString: StringComponent;
-<<<<<<< HEAD
- @ViewChild('flairTooltip', { static: true }) private flairTooltip: StringComponent;
- rowFlairCallback: (row: any) => GridRowFlairEntry;
-=======
->>>>>>> 3caf654095ad80baf21646630e2a9324bf0ad314
@Input() sort_field: string;
@Input() idl_class = "acmc";
@Input() dialog_size: 'sm' | 'lg' = 'lg';
ngOnInit() {
this.getSource();
-<<<<<<< HEAD
- this.rowFlair();
-=======
->>>>>>> 3caf654095ad80baf21646630e2a9324bf0ad314
}
/**
};
}
-<<<<<<< HEAD
- rowFlair() {
- this.rowFlairCallback = (row: any): GridRowFlairEntry => {
- const flair = {icon: null, title: null};
- if (row.id() < 100) {
- flair.icon = 'not_interested';
- flair.title = this.flairTooltip.text;
- }
- return flair;
- };
- }
-
- gridCellClassCallback = (row: any, col: GridColumn): string => {
- if (col.name === 'id' && row.a[0] < 100) {
- return 'text-danger';
- }
- return '';
- }
-
-=======
->>>>>>> 3caf654095ad80baf21646630e2a9324bf0ad314
showEditDialog(standingPenalty: IdlObject): Promise<any> {
this.editDialog.mode = 'update';
this.editDialog.recordId = standingPenalty['id']();