Skip to main content
PChil.1
Associate II
May 12, 2020
Solved

How to Import Widgets

  • May 12, 2020
  • 8 replies
  • 1761 views

I am working on a project that I would like to import a keyboard into, like the one in the examples. How do I import widgets into projects?

This topic has been closed for replies.
Best answer by Karan 123

Hi,

Please check below link.

https://www.youtube.com/watch?v=uE6eiTjOP-g&t=1251s

Hope this helps.

--

Karan

8 replies

Karan 123
Karan 123Best answer
Senior
May 12, 2020

Hi,

Please check below link.

https://www.youtube.com/watch?v=uE6eiTjOP-g&t=1251s

Hope this helps.

--

Karan

PChil.1
PChil.1Author
Associate II
May 12, 2020

I will watch that, thank you.

Martin KJELDSEN
Principal III
May 13, 2020

Hi,

There's currently no good way of importing a single widget (it usually consists of both json definition as well as custom code). You can import a complete GUI from another project, but this is not what you want. We're discussing how to best create a reusable widget/screen repository.

/Martin

scottSD
Senior III
May 19, 2020

@Martin KJELDSEN​ , looking forward to that implementation. A widget/screen repository would alleviate a lot of issues and be very helpful.

Another thing that would be useful is to be able to simply copy/paste widgets (or any Designer elements) from one instance of TouchGFX Designer to another instance of the Designer. The only way to copy/paste currently is from one screen to another in the same instance of TouchGFX Designer.

I have numerous projects that are similar and I would like to do this, but I end up having design it all over again or I copy parts of the JSON code and other files with a difference/merge tool.

Martin KJELDSEN
Principal III
May 20, 2020

Would you expect the custom code for that widget (e.g. Custom Container) to be copied with the gui definition?

PChil.1
PChil.1Author
Associate II
May 13, 2020

Thank you for your answers!

Martin KJELDSEN
Principal III
May 20, 2020

No problem!