I'm struggling trying to get a plug in to work using Sencha Touch Architect. Anyone have any good examples of how to do this? Ultimately I am trying to use the SignaturePad plugin (found here: http://www.sencha.com/forum/showthre...Sencha-Touch-2). It only has 3 files, a controller, a view and a .js file with the custom xtype.
I see how you are using a custom xtype: 'pagingtoolbar' in your MyPagintToolbar view but how were you able to specify this custom type? I don't see xtype (nor type) as a property you can set using architect. If I edit my .js file directly in a text editor after the save I can get it to work but every time I save in architect I have to edit the .js file manually again. BTW - I'm using Sencha Touch and have no experience in Ext.
I see how you are using a custom xtype: 'pagingtoolbar' in your MyPagintToolbar view but how were you able to specify this custom type? I don't see xtype (nor type) as a property you can set using architect. If I edit my .js file directly in a text editor after the save I can get it to work but every time I save in architect I have to edit the .js file manually again. BTW - I'm using Sencha Touch and have no experience in Ext.
Obrigado!
PagingToolbar is a native ExtJS component. If you drag any component from the toolbox to an existing component, it will add it with its xtype. In the documentation (extjs 4 or sencha touch 2), you can see the xtype of any component
Just one more comment: the plugin you are trying to use is not optimized. The author declared several classes into a single javascript file. If you want to use it with dynamic loading, it is not going to work as expected. You may want to organize it better a little bit.
I really appreciate all your help! I've developed for many years but I'm very new to Sencha and JavaScript.
You're right, I can't get the plugin to work using dynamic loading - you said the file has multiple classes defined in it which isn't immediately obvious to me (again I'm new to JavaScript) but I trust you.
I am so close...
I got it working - kind of by doing the following...
I have an empty container view that I created an override for and I just added all the code in signaturefield.js to the override and it works IF I hand edit the view that is using the signature field. I have to hand edit the .js file and set the xtype='signaturefield' directly in a text editor after I save my Touch 2.0 project in Architect. But this is obviously a bad solution because every time I save in Architect the .js file is regenerated and my changes are lost so have to I update the .js file again and set the xtype='signaturefield' directly in a text editor.
Is there a way around this? I wish Architect would allow you change the xtype using a property in the UI.