// Used in conjunction with cellTemplate
@Input() cellContext: any;
@Input() cellTemplate: TemplateRef<any>;
- @Input() cellPrintValue: (row: any, cell: GridColumn) => string;
@Input() disableTooltip: boolean;
col.hidden = this.hidden === true;
col.isIndex = this.index === true;
col.cellTemplate = this.cellTemplate;
- col.cellPrintValue = this.cellPrintValue;
col.cellContext = this.cellContext;
col.disableTooltip = this.disableTooltip;
col.isSortable = this.sortable;
timezoneContextOrg: number;
cellTemplate: TemplateRef<any>;
- // Provide a way for cells that are generated via cellTemplate's
- // to provide an alternate text value suitable for printing.
- cellPrintValue: (row: any, cell: GridColumn) => string;
-
cellContext: any;
isIndex: boolean;
isDragTarget: boolean;
<eg-grid-column name="id" [index]="true" [hidden]="true"></eg-grid-column>
<eg-grid-column i18n-label label="Matches" name="+matches"
- [cellTemplate]="matchesTmpl" [cellPrintValue]="cellPrintValues"></eg-grid-column>
+ [cellTemplate]="matchesTmpl"></eg-grid-column>
<eg-grid-column name="import_error" i18n-label
- label="Import Errors" [cellTemplate]="errorsTmpl"
- [cellPrintValue]="cellPrintValues"></eg-grid-column>
+ label="Import Errors" [cellTemplate]="errorsTmpl"></eg-grid-column>
<eg-grid-column name="import_time" i18n-label
label="Import Date" datatype="timestamp"></eg-grid-column>
<eg-grid-column name="imported_as" i18n-label label="Imported As"
- [cellTemplate]="importedAsTmpl" [cellPrintValue]="cellPrintValues"></eg-grid-column>
+ [cellTemplate]="importedAsTmpl"></eg-grid-column>
</eg-grid>
path="active_date" datatype="timestamp">
</eg-grid-column>
<eg-grid-column i18n-label label="Holdable?" name="holdable"
- [cellTemplate]="holdableTemplate" [cellContext]="copyContext"
- [cellPrintValue]="cellPrintValues">
+ [cellTemplate]="holdableTemplate" [cellContext]="copyContext">
</eg-grid-column>
<eg-grid-column i18n-label label="Status" path="copy_status">
</eg-grid-column>