Extjs Plugins Direct

addClearButton: function() this.clearBtn = this.field.addButton( cls: 'x-clear-button', iconCls: 'x-fa fa-times-circle', hidden: this.field.isEmpty(), handler: this.clearField.bind(this) ); this.field.on('change', this.updateButtonVisibility, this); ,

Plugin Aliases and Lazy Instantiation // In plugin definition Ext.define('MyApp.plugin.ToolbarDock', alias: 'plugin.toolbardock' ); // In component config extjs plugins

xtype: 'grid', plugins: [ type: 'toolbardock', position: 'top', items: [ text: 'Save' ] ] addClearButton: function() this

init: function(host) this.host = host; // Add event listeners if (this.getLogEvents()) host.on( afterrender: this.onHostRender, destroy: this.onHostDestroy, scope: this ); , iconCls: 'x-fa fa-times-circle'

По всем вопросам пишите через форму обратной связи или на e-mail: [email protected]

extjs plugins