<div class="eg-grid-toolbar mb-2">
<div class="btn-toolbar">
+ <span class="font-weight-bold mr-2" *ngIf="gridContext.toolbarLabel">
+ {{gridContext.toolbarLabel}}
+ </span>
<!-- buttons -->
<div class="btn-grp" *ngIf="gridContext.toolbarButtons.length || gridContext.isFilterable">
@Input() cellTextGenerator: GridCellTextGenerator;
+ // If set, appears along the top left side of the grid.
+ @Input() toolbarLabel: string;
+
context: GridContext;
// These events are emitted from our grid-body component.
this.context.rowFlairIsEnabled = this.rowFlairIsEnabled === true;
this.context.showDeclaredFieldsOnly = this.showDeclaredFieldsOnly;
this.context.rowFlairCallback = this.rowFlairCallback;
+ this.context.toolbarLabel = this.toolbarLabel;
this.context.disablePaging = this.disablePaging === true;
this.context.cellTextGenerator = this.cellTextGenerator;
this.context.ignoredFields = [];
columnSet: GridColumnSet;
autoGeneratedColumnOrder: string;
rowSelector: GridRowSelector;
+ toolbarLabel: string;
toolbarButtons: GridToolbarButton[];
toolbarCheckboxes: GridToolbarCheckbox[];
toolbarActions: GridToolbarAction[];