最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

angular - Ag Grid v 32 showLoadingOverlay() alternative - Stack Overflow

programmeradmin3浏览0评论

In an Angular project from I am updating Ag grid version from 31.3.1 to 32-lts. And to do this I have run command "$ npx u/ag-grid-devtools/cli@^32.2 migrate --from=31.3.1" While executing this command it gave me errors in console as

This method has been deprecated - this.gridApi.showLoadingOverlay();

On update guide it is mentioned as

Grid API - showLoadingOverlay is deprecated, setting loading=true to enable overlay.
grid API

I tried setting [loading]="true" in HTML however it says [loading] is not an input property.

and also in gridOptions as

this.gridOptions = {
  loading: true
}

It says 'loading' does not exist in type 'GridOptions'

Then how fix this all?

In an Angular project from I am updating Ag grid version from 31.3.1 to 32-lts. And to do this I have run command "$ npx u/ag-grid-devtools/cli@^32.2 migrate --from=31.3.1" While executing this command it gave me errors in console as

This method has been deprecated - this.gridApi.showLoadingOverlay();

On update guide it is mentioned as

Grid API - showLoadingOverlay is deprecated, setting loading=true to enable overlay.
grid API

I tried setting [loading]="true" in HTML however it says [loading] is not an input property.

and also in gridOptions as

this.gridOptions = {
  loading: true
}

It says 'loading' does not exist in type 'GridOptions'

Then how fix this all?

Share Improve this question edited Feb 14 at 11:47 Naren Murali 57.4k5 gold badges41 silver badges71 bronze badges asked Feb 14 at 11:37 shuklendushuklendu 5361 gold badge5 silver badges9 bronze badges 1
  • did you check this codesandbox, could you verify the aggrid versions match, they are using 33.1.0 please replicate on the sandbox and update on the question – Naren Murali Commented Feb 14 at 11:48
Add a comment  | 

1 Answer 1

Reset to default 0

If you do not want to bind to the loading property, another way of showing the loading indicator is by setting it using the grid api:

this.gridApi.setGridOption('loading', true);
发布评论

评论列表(0)

  1. 暂无评论