I have a component that is extended from a file field, and I added a custom serverPath property to it, and I also defined getter and setter.
code:
Ext.define('MyApp.ux.Field.File',{ extend:'Ext.form.field.File', xtype:'myfilefield', serverPath:'', getServerPath:function(){ return this.serverPath; }, setServerPath:function(serverPath){ this.serverPath = serverPath; } }); Ext.create('MyApp.ux.Field.File',{ bind:{ serverPath:'{serverPath}' }, viewModel:{ type:'myViewModel' } });
i will not insert the definition of myViewModel. it's simple.
and it turned out that the binding does not take effect.
can anyone help?
source share