andrewmenezes
04-07-2023Data Storage
Pivot Cell Styling inconsistent
I am having trouble getting the styling on table cells consistent on pivot tables.
I am trying to get the line in the attached image between the 3rd and 4th columns all the way down but the styling...
- 04-13-2023
Hi andrewmenezes !
I adapted slightly your script, and I think I got to your desired outcome.
Please let me know if it works 🙂
widget.transformPivot( {}, function (metadata, cell) { //set default side and tob/bottom cell colors cell.style.borderColor = 'lightgrey transparent'; //set line to separate columns 3 & 4 if (metadata.colIndex == 2) { cell.style.borderColor = 'lightgrey lightgray lightgrey transparent' } if (metadata.colIndex == 3) { cell.style.borderColor = 'lightgrey transparent lightgrey black' } } ); //Set the default border color as transparent for the table cells prism.on("dashboardloaded",function(){ const style = document.createElement("style"); const node = document.createTextNode(`.table-grid__cell--col-3{border-right-color:transparent ;}`); style.appendChild(node); document.head.appendChild(style) })
Always here to help,
Helena from QBeeQ
[email protected]
QBeeQ - Gold Implementation and Development Partner