Skip to main content
1-Visitor
November 13, 2019
Solved

Create Mashup Widget Extension Guide: Examples missing

  • November 13, 2019
  • 2 replies
  • 4218 views

Hi!  In the "Create Mashup Widget Extension"- Guide it says "You can find examples of widgets in the Tomcat_Installation_Folder/webapps/Thingworx/Common/thingworx/widgets directory." (Source: https://developer.thingworx.com/en/resources/guides/create-mashup-widget-extension/mashup-widget-coding )

 

But im my ThingWorx 8.4 trial installation this directory and its subdirectories contain no single *.js file, but only image files. I guess something has changed since the guide was written. Does anybody have hints where the JS-files for the standard widgets could be obtained? I searched for *.js files in Tomcat_Installation_Folder/webapps/Thingworx and browsed through the results, but nothing looked like the widget sources to me.

 

Best answer by Helge_Kosuch
 

In Chrome Dev Tools, ThingWorx 8.4:

image.png

 

Or, hidden in a much longer files: 

"C:\Program Files (x86)\ThingWorxH2Trial-8.4.0-SNAPSHOT\tomcat\apache-tomcat-8.5.23\webapps\Thingworx\Builder\mashup-common-widgets-builder.js"

"C:\Program Files (x86)\ThingWorxH2Trial-8.4.0-SNAPSHOT\tomcat\apache-tomcat-8.5.23\webapps\Thingworx\Runtime\mashup-common-widgets-runtime.js"

2 replies

20-Turquoise
November 13, 2019

Hi, the guide needs to be updated. In the later ThingWorx versions, the extensibility is revamped with widgets now being web-components.

1-Visitor
November 14, 2019

Thank you very much! 

 

Will the current widget extension (non-web-component) format become deprecated?

 

I cannot find any information on coding widget extensions as web-components. Any hints?

20-Turquoise
November 18, 2019
1-Visitor
November 21, 2019

Now I can answer my own question: You can still find all the sources in http://localhost:8080/Thingworx/Runtime/button/Common/thingworx/widgets/

Helge_Kosuch1-VisitorAuthorAnswer
1-Visitor
November 26, 2019
 

In Chrome Dev Tools, ThingWorx 8.4:

image.png

 

Or, hidden in a much longer files: 

"C:\Program Files (x86)\ThingWorxH2Trial-8.4.0-SNAPSHOT\tomcat\apache-tomcat-8.5.23\webapps\Thingworx\Builder\mashup-common-widgets-builder.js"

"C:\Program Files (x86)\ThingWorxH2Trial-8.4.0-SNAPSHOT\tomcat\apache-tomcat-8.5.23\webapps\Thingworx\Runtime\mashup-common-widgets-runtime.js"