15 May 2013 6:15 AM #1
plugin vs component subclass
I was wondering what are the advantages (and disadvantages) of creating a plugin that is only usable with a single component (ex. list) or creating a subclass of that component?
17 May 2013 5:56 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
If your plugin will only work with one component then you may save some overhead by going with a subclass instead. Plugins are great if they can be applied to different components. Plugins are also great for distribution to outside projects or sharing between applications.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.