Skip to main content
1-Visitor
August 31, 2016
Solved

Can I customize time selector widget?

  • August 31, 2016
  • 7 replies
  • 3064 views

Is it possible to customize the time selector widget more then colors?

I would like to change the text On/Off with another text and same thing for Refresh now.

I am afraid that for thingworx widget it is not possible to get the ide and runtime javascript to customize them, is it?

Best answer by CarlesColl

Hi Fabio,

To customize Texts, you can go to localization tables, it are there ( the "problem" will be that it will change TW System wide 😞

  • on and off Tokens
  • refresh / refreshNow Tokens

About the colors you should play around with FocusStyle/TimeBGStyle/TimeDatePickerStyle/TimeAutoRefreshStyle/TimeRefreshBtnStyle Style properties.

If you want to go beyond that customization options, then you can create your own Time Selector widget as an extension based on current Time Selector code, we already did it to support TimeZone and it's not hard once you are used

Best Regards,

Carles.

7 replies

1-Visitor
August 31, 2016

Hi Fabio,

To customize Texts, you can go to localization tables, it are there ( the "problem" will be that it will change TW System wide 😞

  • on and off Tokens
  • refresh / refreshNow Tokens

About the colors you should play around with FocusStyle/TimeBGStyle/TimeDatePickerStyle/TimeAutoRefreshStyle/TimeRefreshBtnStyle Style properties.

If you want to go beyond that customization options, then you can create your own Time Selector widget as an extension based on current Time Selector code, we already did it to support TimeZone and it's not hard once you are used

Best Regards,

Carles.

fmanniti1-VisitorAuthor
1-Visitor
August 31, 2016

Localization tokens does what I need but, just to know, from your answer I understand it is possible to get the Time Selector code, am i right?

Because I thought I could get the code only from widget I download from Market Place.

1-Visitor
August 31, 2016

Hi Fabio,

Yes you can get the code from the TW Server, it's there ( it's just plain HTML5 files XXX/Tomcat 8/webapps/Thingworx/Common/thingworx/widgets/*).

Carles.