Geta / geta-optimizely-genericlinks

An extensive alternative to LinkItemCollection in Optimizely.
Apache License 2.0
4 stars 0 forks source link

Set default value to property #16

Closed joemayberry-perficient closed 1 year ago

joemayberry-perficient commented 1 year ago

Is there a way to set a default value for a property on a link data model in a LinkDataCollection?

For example, I have a string property in the linkdatamodel that needs to be set for each item with a unique value (in this case a guid).

svenrog commented 1 year ago

Currently not possible due to restrictions in the editor. Value would have to be set inside dojo widget. I'm thinking of adding support for [DefaultValue] attributes in version 2.0.