Skip to main content
6-Contributor
Jul 25, 2023 12:04 PM UTC
Question

How to add inline css for the HTML code in a thingworx service

Hello,

Can anyoe help me on how to add border and other css elements for the HTML table in the below service in thingworx

MR_10404102_0-1690286540194.png

Thanks in advance!

 

 

3 replies

14-Alexandrite
Jul 25, 2023 12:53 PM UTC

You can proabably define the CSS class in the Mashup, and then use teh class in your HTML output, that  should wor.

Translate
6-Contributor
Jul 25, 2023 12:57 PM UTC

I am binding the output of the service to a html text widget 

Translate
19-Tanzanite
Jul 25, 2023 4:31 PM UTC

Hi @MR_10404102,

Is the question specific to how to add table borders in HTML?

As far as I can see, the question is related only to HTML, and you'll find better luck finding the answer to that in websites like stackoverflow.

We are definitely open to help on this forum to anything ThingWorx specific, but from what I can see, there's nothing specific to ThingWorx outside the fact you're wrapping that HTML code in a service and then displaying it in the HTML text widget.

 

Separately, may I ask why you're not using the Grid in ThingWorx to render that data ?

Translate