Skip to main content
5-Regular Member
April 20, 2016
Question

Is there a way to put a link on text (not whitespace)?

  • April 20, 2016
  • 1 reply
  • 1728 views

When I create a Link widget with some localized text, the entire space of the widget is clickable, not just the text.  This is a particular problem for localization, since we can't tailor the widget width to a specific string.  Is there a way around this?

I'm using ThingWorx 6.6.2 but we plan to upgrade to 7.1 soon.

1 reply

1-Visitor
April 21, 2016

You could customize the Link widget to make its Width property an input parameter.

chmaloof5-Regular MemberAuthor
5-Regular Member
April 21, 2016

If "make a custom widget" turns out to be the best approach, I'd just go all the way and make one that only links the text.  (Is there actually a way to customize the built-in Composer widgets?  Is their source code available somewhere?)

1-Visitor
April 21, 2016

Yes, you can find them in "$CATALINA_HOME/webapps/Thingworx/Common/thingworx/widgets" and build new ones instead of replace these built-in widgets.