estrify Posted June 23, 2014 Share Posted June 23, 2014 Hi, I am making some tests with custom components. How can I use a plugin with them??... i.e. I want to extend TUniEdit to use ClearButton plugin... Using a normal TUniEdit and ClientEvents it is easy, but I don't know how to make it work directly in a custom component... in WebCreate the following produce ajax error: JSConfig('plugins', ['Ext.create("Ext.ux.form.field.ClearButton", {serverSideClear: false})']); TIA Link to comment Share on other sites More sharing options...
estrify Posted June 23, 2014 Author Share Posted June 23, 2014 Hi, I am making some tests with custom components. How can I use a plugin with them??... i.e. I want to extend TUniEdit to use ClearButton plugin... Using a normal TUniEdit and ClientEvents it is easy, but I don't know how to make it work directly in a custom component... in WebCreate the following produce ajax error: JSConfig('plugins', ['Ext.create("Ext.ux.form.field.ClearButton", {serverSideClear: false})']); TIA Sorry... It's my fault... Simply have to use: JSProperty('plugins', 'Ext.create("Ext.ux.form.field.ClearButton", {serverSideClear: false})'); Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted June 23, 2014 Administrators Share Posted June 23, 2014 JSConfigPlugin('Ext.ux.form.field.ClearButton', [ 'serverSideClear',False ] ); Link to comment Share on other sites More sharing options...
estrify Posted June 23, 2014 Author Share Posted June 23, 2014 JSConfigPlugin('Ext.ux.form.field.ClearButton', [ 'serverSideClear',False ] ); Thank you very much... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now