<eg-grid #grid [dataSource]="dataSource"
[sortable]="true" persistKey="disabled"
[filterable]="true" [stickyHeader]="true"
- [disableSelect]="true">
+ [disableSelect]="true" [cellTextGenerator]="cellTextGenerator">
<ng-template #nameTmpl let-row="row">
<a href="/eg2/staff/acq/provider/{{row.id()}}/edi_accounts" target="_blank">{{row.name()}}</a>
</ng-template>
import {NetService} from '@eg/core/net.service';
import {AuthService} from '@eg/core/auth.service';
import {PcrudService} from '@eg/core/pcrud.service';
-import {GridDataSource} from '@eg/share/grid/grid';
+import {GridDataSource, GridCellTextGenerator} from '@eg/share/grid/grid';
import {GridComponent} from '@eg/share/grid/grid.component';
import {Pager} from '@eg/share/util/pager';
import {NgbModal} from '@ng-bootstrap/ng-bootstrap';
@ViewChild('grid', { static: false }) grid: GridComponent;
attrSet: IdlObject;
dataSource: GridDataSource;
+ cellTextGenerator: GridCellTextGenerator;
constructor(
private idl: IdlService,
ngOnInit() {
this.attrSet = null;
this._initRecord();
+ this.cellTextGenerator = {
+ name: row => row.name()
+ };
}
private _initRecord() {