<eg-grid #grid idlClass="{{idlClass}}" [dataSource]="dataSource"
[sortable]="true" persistKey="{{persistKey}}"
+ [cellTextGenerator]="cellTextGenerator"
[stickyHeader]="true">
<eg-grid-toolbar-button [disabled]="!canCreate"
label="New {{idlClassDef.label}}" i18n-label [action]="createNew">
import {PermService} from '@eg/core/perm.service';
import {AuthService} from '@eg/core/auth.service';
import {NetService} from '@eg/core/net.service';
+import {GridCellTextGenerator} from '@eg/share/grid/grid';
import {StringComponent} from '@eg/share/string/string.component';
import {FmRecordEditorComponent} from '@eg/share/fm-editor/fm-editor.component';
refreshSelected: (idlThings: IdlObject[]) => void;
createNew: () => void;
deleteSelected: (idlThings: IdlObject[]) => void;
+ cellTextGenerator: GridCellTextGenerator;
@ViewChild('refreshString', { static: true }) refreshString: StringComponent;
@ViewChild('refreshErrString', { static: true }) refreshErrString: StringComponent;
this.classLabel = this.idlClassDef.label;
this.includeOrgDescendants = true;
-
+ this.cellTextGenerator = {
+ bucket: row => row.bucket().name()
+ };
this.createNew = () => {
super.createNew();