Extjs Plugins File

); Ext.define('MyApp.plugin.Validator', extend: 'Ext.plugin.Abstract', alias: 'plugin.validator', config: rules: null ,

xtype: 'grid', plugins: [ type: 'toolbardock', position: 'top', items: [ text: 'Save' ] ] extjs plugins

clearField: function() this.field.setValue(''); this.field.focus(); , ); Ext

showDetail: function(row, record) var detailDiv = Ext.DomHelper.append(row.parentNode, tag: 'div', cls: 'x-row-expander-detail', html: '<div class="detail-content">Details for ' + record.get('name') + '</div>' , true); detailDiv.setWidth(row.offsetWidth); , config: rules: null

init: function(host) host.myNewMethod = this.myNewMethod.bind(this); , myNewMethod: function() console.log('Called from host component');