Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi,
I recently migrated a mashup using the "Mashup Migration" steps. The legacy advanced grid used a Custom CSS, but after the migration the styles from the CSS seem to no longer have any effect on the grid.
The grid header column require 3 different columns.
-first 2 header columns are black
-header columns 3-7 are blue
-header columns 8-13 are grey
Is there a way to have the Custom CSS recognized or perhaps Style Theme has an advanced feature?
TIA
Hi @mariaSutton "Sample CSS for the Grid and Advanced Grid Widgets": https://www.ptc.com/en/support/article/CS314561
Hi @Surya_Tiwari,
Thanks for the quick response. I tested the css provided in this article but it does not work.
I am working with ThingWorx 9.3.13
Hi Maria,
I had the same issue with CSS working fine on grid-advanced. The "new" grid that was implemented I think in TW9.3 can be styled using the ptcs-style-unit instead of using shadow DOM CSS. Small example to get you started below.
BR,
Roger
@supports (ptcs-style-unit: "PTCS-CORE-GRID") {
[part="body-cell"]:has(div.tooltip) {
text-align: center !important;
display: block;
}
[part="cell-html"]:has(div.tooltip) {
text-align: center !important;
}
/* Tooltip definition */
[part="cell-html"] .tooltip img {
width: 15px;
height: 15px !important;
vertical-align: middle;
margin-bottom: 2px;
position: relative;
}
}
Hi @rogerjn,
If I am not wrong, the Syntax "@supports (ptcs-style-unit: "PTCS-CORE-GRID")" is supported in Thingworx 9.4.
Thanks,