1 Attachment(s)
SignaturePad plugin for the Sencha Touch 2
Hey guys, I have updated the existing signature pad plugin written for Sencha Touch 1.
You can find the source code here https://github.com/ivanovvitaly/SignaturePadST2 and the code for the sample form bellow as well.
Here is the sample image of what I've got
Architect 2 - Sencha Touch?
I'm very extied to use this - thanks for making! Any tips on how to get this to work in Sencha Touch in Architect 2?
thanks!
Probably Something Stupid on My Part
Ok...should I have to do anything more to see the sample app from Git than put it in a directory up on a standard LAMP build and hit its index file?
I threw this up on a server, and get this error:
Error: The following classes are not declared even if their files have been loaded: 'Sencha.ux.SignaturePad'. Please check the source code of their corresponding files for possible typos: 'app/plugin/SignaturePad.js
[Break On This Error]
"corresponding files for possible typos: '" + missingPaths.join("', '"));
sencha-touch.js (line 7897)
http://sigtest.m3tr1cs.com/
Can anyone offer me any guidance on what I'm doing wrong?
Thanks!
Getting SignaturePad working in Architect
Add SignaturePad.js to your project root.
Add in a JS Resource that points to this (note: this will then deploy with your project and let you edit in Architect)
Create a loader
Ext.Loader.setConfig({
enabled: true,
paths: {
'ST2.plugin.SignaturePad': 'SignaturePad.js'
}
});
Create a container in the form you want to use it.
Promote to Class
Create override in class
Ext.define('DiveLogger.view.override.MyContainer', {
override: 'DiveLogger.view.MyContainer',
config:{
plugins: [
{
xclass: 'ST2.plugin.SignaturePad',
canvasId: 'signature',
width: 500,
height: 230,
disableScrollCmp: 'formpanel'
}
]
},
initialize:function(){
Ext.create('ST2.plugin.SignaturePad');
this.callOverridden(arguments);
}
});
Note: disableScrollCmp will be the parent xtype for your form.