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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Why does ::part()::part() work in ThingWorx 8.5?

RD_9093672
2-Explorer

Why does ::part()::part() work in ThingWorx 8.5?

Since we are limited by the StyleTheme range of options we are forced to inject CSS to fine-tune our solutions. 

 

Now according to CSS org, W3 and SO the syntax ::part()::part() should not and cannot work. In TWX 8.5 however, we found this was exactly what was required to achieve our intended purpose. We have been struggling to understand why this happens, any ideas?

ACCEPTED SOLUTION

Accepted Solutions

Hi @RD_9093672,

 

Indeed it is not officially supported to use syntaxes like ::part()::part() in custom CSS in ThingWorx. They might happen to work in some cases, but this is not how the support for custom CSS in ThingWorx was designed.

 

The way ThingWorx supports reaching sub-elements is with the "partmap" tag. If the top-element has a "partmap" tag as such :

then the sub-elements can be reached in the css. For example an element called "image" within this icon can be reached with syntax "icon-image".

View solution in original post

2 REPLIES 2

Hi @RD_9093672,

 

Indeed it is not officially supported to use syntaxes like ::part()::part() in custom CSS in ThingWorx. They might happen to work in some cases, but this is not how the support for custom CSS in ThingWorx was designed.

 

The way ThingWorx supports reaching sub-elements is with the "partmap" tag. If the top-element has a "partmap" tag as such :

then the sub-elements can be reached in the css. For example an element called "image" within this icon can be reached with syntax "icon-image".

slangley
23-Emerald II
(To:c_lowy)

Hi @RD_9093672.

 

If you feel your question has been answered, please mark the response from @c_lowy as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Announcements


Top Tags