DHTMLX Designer - include templates of some sort

I have been using the desktop version of the designer now and mostly finished one UI. Its a wonderful tool. I am about to start another part of the project and realise that some of the popup windows are going to be common. If there was a way to export a popup window and the reference it as an include that would be wonderful. We could then create libraries of common screens and insert them into differnt UI builds as required. I would suggest it might be simple to have a ‘master’ Main UI and then just either reference the popup (:) or be able to ‘export’ a popup in a form that could be included by reference into another UI. Maybe add a config item ’ Include file’ which would take a file path to some script that defines the popup window.

Lawrence

You can store common elements in the Snippets branch of the components tree( right-click on the ‘Snippets’, create a ‘Collection’, and dnd your controls into it). These controls will be saved, and you can use them in different projects.

Looks great, is it documented somewhere? I was going to ask what snippets were? I guess I should have asked sooner. Looks like I can save layouts but not windows, grids and forms but not cells etc. and if I edit a snippet I need to delete the item in the UI and drag the edited snippet back (or vice versa?).

Thanks, Lawrence

One other question. Where does it save them? If I want to share them with other developers or put them in a common library somewhere?

Thanks, Lawrence

Сurrent version has no simple way to export snippets. If you want to share some component, you may drag it to the UI and save ui to js file, other developer can load it and save needed control to his snippets.

Yes, it supposed that only ‘standalone’ elements can be saved to snippets, but you can add there a grid(or form, tabbar, etc) and store it’s child elements within it.
It should be possible to save windows as well, this bug is fixed in upcomming version(if you want that fix asap you may create ticket in support system, and we’ll send you a fixed version)