Skip to main content
PChil.1
Associate II
May 12, 2020 5:46 PM UTC
Solved

How to Import Widgets

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.
Karan 123
Karan 123Best answer
Senior
May 12, 2020 6:28 PM UTC

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 6:28 PM UTC

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 6:47 PM UTC

I will watch that, thank you.

Martin KJELDSEN
Principal III
May 13, 2020 8:44 AM UTC

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 12:31 PM UTC

@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 8:15 AM UTC

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 1:37 PM UTC

Thank you for your answers!

Martin KJELDSEN
Principal III
May 20, 2020 8:15 AM UTC

No problem!