PDA

View Full Version : When should I use a feature and when a plugin?



AndreKR
22 Nov 2011, 4:37 AM
I am creating an extension I want to use in several grids (a paste-handler) and I am wondering whether to make a plugin or a feature. What's the difference?

tvanzoelen
22 Nov 2011, 4:50 AM
Its in the docs


A feature is a type of plugin that is specific to the Ext.grid.Panel. It provides several hooks that allows the developer to inject additional functionality at certain points throughout the grid creation cycle. This class provides the base template methods that are available to the developer, it should be extended.

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.feature.Feature

But I think a feature has more to do with display than functionality.