Sencha Touch plugin which helps to automatically clean up DOM from hidden components
Author: Constantine V. Smirnov, kostysh(at)gmail.com, http://mindsaur.com
License: GNU GPL v3.0
Current version: 1.0
ST2 version: 2.1.0
- Sencha Touch 2.0
- 1.0: Initial release
- Simple config for plugin (just add it to 'plugins' config section)
- short link to plugin in component object (domCleanable)
- 'cleared' event. Lets to know when the component was removed from its parent
- Place ux to your application /src folder;
- Configure custom path for custom components:
Ext.Loader.setPath({
'Ext.ux': '../src/ux'
});
- Plugin configuration:
items: [
{
xtype: 'container',
plugins: [
{
xclass: 'Ext.ux.plugin.DomCleanable'
}
]
}
]
- 'cleared' event usage:
componentObject.domCleanable.on({
cleared: function(cmp, parent) {
console.log('Component: ' + cmp.getId() + ' was removed from ' + parent.getId() + ' DOM');
}
});