Skip to main content
PChil.1
Associate II
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

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

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

I will watch that, thank you.

Martin KJELDSEN
Principal III

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

@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

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

Thank you for your answers!

Martin KJELDSEN
Principal III

No problem!