Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable ag-grid when showing loading- or any overlay

When showing the loading overlay (or any other overlay) by using the api call

gridOptions.api.showLoadingOverlay()

in ag-grid, the rows and all grid-functions (buttons, context-menu, etc.) below the overlay are still selectable/usable.

Is there any way that I can prevent that from happening? Are there any plans to change this behaviour in a future release?

like image 345
Alexander Zbinden Avatar asked Mar 31 '17 10:03

Alexander Zbinden


1 Answers

Add this CSS rule:

.ag-bl-overlay {
    pointer-events: auto;
}

For some reason the default CSS for this selector is:

.ag-bl-overlay {
    height: 100%;
    left: 0;

    pointer-events: none;

    position: absolute;
    top: 0;
    width: 100%;
}

With pointer-events being set to none which is the source of all of this grief and misery!

like image 66
Eskei Avatar answered Sep 27 '22 21:09

Eskei