Skip to main content
6-Contributor
July 25, 2023
Question

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

  • July 25, 2023
  • 2 replies
  • 1470 views

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!

 

 

2 replies

14-Alexandrite
July 25, 2023

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

6-Contributor
July 25, 2023

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

19-Tanzanite
July 25, 2023

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 ?