PDA

View Full Version : Ext Designer "Where to put custom code?"



imegai
12 May 2010, 7:52 AM
if you have a project (an ".xds file"), you can add new properties in the same format the file has, while they are in the userconfig section they´ll remain when you save the project again, so if i want to add a function or a global var, where should i write it?, this in order to save && export a project with every piece of code it needs.

it's this posible? or i have to define everything in a external js file and add the "scritp tag" to the html file?
if this is the answer, is there any section to add this linked-referenced js codefile to the project file itself instead of modify the exported files?

thanks in advance.

aconran
12 May 2010, 9:55 AM
You can continually update the .js file while exporting over top the .ui.js file via an export.

Take a look at the Designer Demo video in the blog http://www.extjs.com/blog/2010/04/22/ext-designer-released-watch-the-screencast/

This may point you in the right direction.