cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

TWX 9.6 Grid styling the sorting icon

JO_9930585
13-Aquamarine

TWX 9.6 Grid styling the sorting icon

The new grid has a sorting icon that takes up a lot of space when space is limited. I am trying to style this to remove this 8px margin. Any idea on how to remove this?

JO_9930585_1-1743711334301.png

 

Alternatively, is there a way to remove the icon completely out of the box and just have the column clickable similar to the old widget? 

 

ACCEPTED SOLUTION

Accepted Solutions

Hi @JO_9930585,

 

Please try the following custom CSS. Ensure to verify if custom CSS is still working after you upgrade your ThingWorx.

@supports (ptcs-style-unit: "PTCS-CORE-GRID"){
    [part=hit-area]{
        margin: 0;
    }
}

 

Tony

View solution in original post

5 REPLIES 5

Hi @JO_9930585,

 

Please try the following custom CSS. Ensure to verify if custom CSS is still working after you upgrade your ThingWorx.

@supports (ptcs-style-unit: "PTCS-CORE-GRID"){
    [part=hit-area]{
        margin: 0;
    }
}

 

Tony
JO_9930585
13-Aquamarine
(To:TonyZhang)

Thingwors is saying this is invalid css and will not let me save this..

JO_9930585_0-1744906986590.png

 

Hi @JO_9930585,

 

Forgot to mention that please turn off the Linting (the toggle button) and you should be able to save the mashup successfully.

 

Tony
JO_9930585
13-Aquamarine
(To:TonyZhang)

This worked. Thanks! I will accept it as a solution. 

 

Would you mind explaining this part though? I don't see this in the CSS explicitly.

ptcs-style-unit: "PTCS-CORE-GRID"

 

Hi @JO_9930585,

 

This is the new way of styling web component widgets introduced since ThingWorx 9.3.4.

PTCS-CORE-GRID is a web component and is the shadow host of the element (part=hit-area) that you want to style in this case.

Please check the ThingWorx Help Center - Applying Custom CSS Styling to Web Component Widgets

 

Tony
Announcements


Top Tags