Why I can't build my app with sencha cmd?
here is my code
Any help will be good.
Thx.
sencha compile error whencreating a custom picker
app.framework.version=4.2.1.883
app.cmd.version=5.0.3.324
Code:
[INF] Compressing data with YuiJavascriptCompressor
[ERR] C2009: YUI Parse Error (invalid property id => var me = this, picker = new Ext.form.FormPanel({pickerField: me, floating: true, hidden: true, ownerCt: this.ownerCt, items: [{xtype: 'textarea', id: 'idComments', width: '100%', grow: true}, {xtype: 'button', text: 'Submit change', style: {margin: '1.5%', float: 'right'}, listeners: {click: function() {) -- unknown-file:54485:265
[ERR] C2009: YUI Parse Error (missing ) after argument list => }}}]});) -- unknown-file:54489:3
[ERR] C2009: YUI Parse Error (invalid return => return picker;) -- unknown-file:54490:9
[ERR] C2009: YUI Parse Error (syntax error => }}, 0, ["CustomPicker"], ["CustomPicker", "box", "component", "field", "pickerfield", "textfield", "trigger", "triggerfield"], {"CustomPicker": true, "box": true, "component": true, "field": true, "pickerfield": true, "textfield": true, "trigger": true, "triggerfield": true}, ["widget.CustomPicker"], 0, [floston.view, 'editPicker', 0, 'CustomPicker'], 0));) -- unknown-file:54491:1
[ERR] C2009: YUI Parse Error (Compilation produced 4 syntax errors. => null) -- unknown-file:2
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to compress input
[ERR] at com.sencha.tools.compressors.yui.Bas
[ERR] eYuiCompressor$1.invoke(BaseYuiCompressor.java:132)
[ERR]
[ERR] Total time: 20 seconds
[ERR] The following error occurred while executing this line:
D:\_work_\sotream.com\floston_mvc\.sencha\app\build-impl.xml:266: The following error occurred while executing this line:
D:\_work_\sotream.com\floston_mvc\.sencha\app\js-impl.xml:71: com.sencha.exceptions.ExBuild: Failed to compress input
here is my code
Code:
Ext.define('floston.view.editPicker', {
extend: 'Ext.form.field.Picker',
alias: 'widget.CustomPicker',
alternateClassName: ['CustomPicker'],
triggerCls: Ext.baseCSSPrefix + 'form-time-trigger',
requires: ['Ext.util.KeyNav'],
onTriggerClick: function () {
var me = this;
if (!me.readOnly && !me.disabled) {
if (me.isExpanded) {
me.collapse();
} else {
me.expand();
var oldvalue = Ext.getCmp('idpickerField').getValue();
Ext.getCmp('idComments').setValue(oldvalue);
}
me.inputEl.focus();
}
},
createPicker: function () {
var me = this,
picker = new Ext.form.FormPanel({
pickerField: me,
floating: true,
hidden: true,
ownerCt: this.ownerCt,
items: [
{
xtype: 'textarea',
id: 'idComments',
width: '100%',
grow: true
},
{
xtype: 'button',
text: 'Submit change',
style: {
margin: '1.5%',
float: 'right'
},
listeners: {
click: function () {
var newvalue = Ext.getCmp('idComments').getValue();
Ext.getCmp('idpickerField').setValue(newvalue);
picker.hide();
}
}
}
]
});
return picker;
}
});
Any help will be good.
Thx.
sencha compile error whencreating a custom picker
Aucun commentaire:
Enregistrer un commentaire