File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -499,13 +499,19 @@ export class KdbResultsViewProvider implements WebviewViewProvider {
499499 maxConcurrentDatasourceRequests: 1,
500500 infiniteInitialRowCount: 10000,
501501 maxBlocksInCache: 10,
502+ overlayNoRowsTemplate: '<span class="ag-overlay-loading-center">No results to show</span>',
502503 datasource: {
503504 rowCount: undefined,
504505 getRows: function(params) {
505506 showOverlay();
506507 const results = message.results;
507508 setTimeout(() => {
508509 const lastRow = results.length;
510+ if (lastRow === 0) {
511+ gridApi.showNoRowsOverlay();
512+ } else {
513+ gridApi.hideOverlay();
514+ }
509515 const rowsThisPage = results.slice(params.startRow, params.endRow);
510516 params.successCallback(rowsThisPage, lastRow);
511517 hideOverlay();
You can’t perform that action at this time.
0 commit comments