Let's assume I have defined several new components -MyComponent1
, MyComponent2
, ..., which extend Ext.Component
.
Now I wnat to extend all this widgets with the same functionality - I want to add close
button which would appear at the top-right position of MyComponentX.el
.
What should I use: mixin
? plugin
? or something else?
And in general: mixin vs plugin
, what is the best practise?