Custom CSS on Grid widget no longer working after migration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Custom CSS on Grid widget no longer working after migration
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
Solved! Go to Solution.
- Labels:
-
Mashup-Widget
-
Troubleshooting
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @mariaSutton "Sample CSS for the Grid and Advanced Grid Widgets": https://www.ptc.com/en/support/article/CS314561
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Surya_Tiwari,
Thanks for the quick response. I tested the css provided in this article but it does not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am working with ThingWorx 9.3.13
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @rogerjn,
If I am not wrong, the Syntax "@supports (ptcs-style-unit: "PTCS-CORE-GRID")" is supported in Thingworx 9.4.
Thanks,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
