Re: Automatically add an attribute to component

2015-12-16 Thread Dimitris Zenios
Hi You can create a mixin that adds the atttribute and apply it to all component via a worker and MutableComponentModel.addMixinClassName Dimitris Zenios On Wed, Dec 16, 2015 at 12:27 PM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: > Hi, > > I have some use cases where I want to add a

Automatically add an attribute to component

2015-12-16 Thread Nathan Quirynen
Hi, I have some use cases where I want to add an attribute and value to every instance of a specific component used in my project. For example: add attribute "readonly" to every t:datefield. I can ofcourse just add it everywhere, but I thought (remember reading it somewhere) there was a nicer