Closed clairross-hyperview closed 4 years ago
Hi,
Our Popup widget does not allow specifying CSS class using the elementAttr option. That is why, your scenario does not operate properly. We are going to improve this behavior in future versions.
Meanwhile, you can achieve your goal using the following code in the DataGrid.onContentReady event handler as shown below:
onContentReady(e: any) {
//__isReady is a fake option for preventing from code execution
//each time the onContentReady is called
if(!e.component.__isReady) {
e.component.__isReady = true;
e.component.getView('filterBuilderView').element()[0].classList.add('this-should-exist');
}
}
Note that this approach uses an undocumented API that may not work in future versions.
Steps to Reproduce:
dxo-filter-builder-popup
withResults You Received:
First time opening the Filter Builder modal does not apply the elementAttr as expected to the modal itself.
Results You Expected:
The elementAttr should be applied on the first time the modal is opened, similar to the second time it is opened.
Environment Details:
Browser: Chrome - Version 83.0.4103.106 (Official Build) (64-bit) OS: Microsoft Windows 10 Pro (Version 10.0.18363 Build 18363) npm: