Hey Karol,
Thanks for the info!
Now I know that I may be dreaming, but do you think it would also be possible to create these enums dynamically from let's say a list of colors defined in my component's contribution.xml/component.js by any chance?
If I were to attempt the pseudo-code, ideally it would be something along the lines of this:
/**
* enum field definition
*/
class ColorEnumfield extends Enumfield {
}
/**
* a set of constants defined in component.js
*/
class Color extends Enum {
var colorList = this.colorList; //this.colorList would be defined in contribution.xml, only thing is that not sure this class would have access to my component.
for (var i = 0; i < colorList ; i++){
ColorEnumfield colorList [i];
}
}
Thanks!
Scott