Closed Mcpoowl closed 4 years ago
After some more testing, I came to find that the error occurs when I enter a Column name in the Rules section. When I leave this empty, the class is applied.
However, I want to style only the specific cell when the rule = true, not the entire row or the entire column.
Seems I was conflicted by the documentation, where it showed me I had to use the name of the attribute in the column as the 'columnName' property. But I actually needed to entery the columnName as the property of the datagrid widget (so column4 in my case). Now my class is applied correct
Hi Eric,
I've been having issues with your widget, whereas I keep getting the following error
Cannot read property 'className' of null TypeError: Cannot read property 'className' of null at Object.add (http://localhost:8080/mxclientsystem/mxui/mxui.js?637123462599532212:5:100797) at _handleResults (http://localhost:8080/widgets/CellStyler/widget/CellStyler.js?637123462599532212:1:3099) at http://localhost:8080/widgets/CellStyler/widget/CellStyler.js?637123462599532212:1:1961 at O (http://localhost:8080/mxclientsystem/mxui/mxui.js?637123462599532212:79:25829) at http://localhost:8080/mxclientsystem/mxui/mxui.js?637123462599532212:20:25601
My setup is pretty simple, the column Naam is also visible in the datagrid. I've also tried placing the widget above and below the datagrid. I've also tried using a nanoflow or the built in JavaScript option. Neither work.
Hope you can help!
Modeler version is 7.23.4