Skip to main content
1-Visitor
July 26, 2016
Solved

Where can I get a list of all Thingworx's Js function?

  • July 26, 2016
  • 2 replies
  • 7006 views

I am writing code in order to customize my widget and, on a simple guide I'm reading, I can see there are some TW functions like TW.Runtime.Widgets but also I know TW.getStyleFromStyleDefinition or TW.purgeJqElement, TW.log.error.

Is there anywhere a list of all functions I can get from TW?

Best answer by CarlesColl

I don't think so, When I wan't to know something I dig in with the Chrome developer tools, it's a bad way to do it, as when they release new version they can change anything, but there isn't any official way of knowing it, neither an official Javascript API fro Client Side Extensions.

Sorry,

Carles.

2 replies

1-Visitor
July 26, 2016

I don't think so, When I wan't to know something I dig in with the Chrome developer tools, it's a bad way to do it, as when they release new version they can change anything, but there isn't any official way of knowing it, neither an official Javascript API fro Client Side Extensions.

Sorry,

Carles.

fmanniti1-VisitorAuthor
1-Visitor
July 26, 2016

Mh, ok... I do the same but I hoped there was a more "official" way. Even because sometimes I realize I take a longer way to get somewhere just because I didn't know it

12-Amethyst
July 26, 2016

Another alternative is using/searching the javascript snippets provided in the service edit UI.

5-Regular Member
July 27, 2016

The latest version of the Extension Development Guide rolled a lot of the Widget documentation into it in an effort to not have as many resources scattered across different download mediums, which is something we are still working on.

In addition to combining these docs, a significant amount of information regarding the API's available to Widgets (at both ide and runtime) was added/updated when this info got moved into the central document.  Please download the latest version here and let me know if this helps you out at all or if you see gaps.  The heading to look for is 'Widget API: Mashup Builder' - it should be all the way at the bottom.

The latest version of document will always be available from a link on the Eclipse Plugin Download page in the marketplace here: http://marketplace.thingworx.com/Items/eclipse-plugin-for-thingworx-extensions

I would definitely suggest downloading the newest version of that guide each time there is a release. ThingWorx has people actively working to improve our documentation in areas such as the one you point out here. 

Hope this helps!

fmanniti1-VisitorAuthor
1-Visitor
July 28, 2016

Thanks!
I'm reading this document and it's really useful