@ContentChild(TableDetailDirective) rowDetail!: TableDetailDirective;
@ContentChild(TableActionsComponent) tableActions!: TableActionsComponent;
+ private _headerTitle: string | TemplateRef<any>;
+ isHeaderTitleString = false;
+
@Input()
- headerTitle: string;
+ set headerTitle(value: string | TemplateRef<any>) {
+ this._headerTitle = value;
+ this.isHeaderTitleString = typeof value === 'string';
+ }
+
@Input()
headerDescription: string;
// This is the array with the items to be shown.
return this.selectionType === 'single';
}
+ get headerTitle(): string | TemplateRef<any> {
+ return this._headerTitle;
+ }
/**
* Controls if all checkboxes are viewed as selected.
*/