Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit 4b917af

Browse files
committed
feat: expose displayEmptyDataWarning
1 parent 8f0a061 commit 4b917af

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/app/modules/angular-slickgrid/components/angular-slickgrid.component.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,13 @@ export class AngularSlickgridComponent<TData = any> implements AfterViewInit, On
925925
return showing;
926926
}
927927

928+
/**
929+
* Toggle the empty data warning message visibility.
930+
* @param showWarning
931+
*/
932+
displayEmptyDataWarning(showWarning = true) {
933+
this.slickEmptyWarning?.showEmptyDataMessage(showWarning);
934+
}
928935
//
929936
// protected functions
930937
// ------------------
@@ -937,10 +944,6 @@ export class AngularSlickgridComponent<TData = any> implements AfterViewInit, On
937944
columnDefinitions.forEach((col) => (col.originalWidth = col.width));
938945
}
939946

940-
protected displayEmptyDataWarning(showWarning = true) {
941-
this.slickEmptyWarning?.showEmptyDataMessage(showWarning);
942-
}
943-
944947
protected bindDifferentHooks(grid: SlickGrid, gridOptions: GridOption, dataView: SlickDataView) {
945948
// on locale change, we have to manually translate the Headers, GridMenu
946949
if (this.translate?.onLangChange) {

0 commit comments

Comments
 (0)