Datatype Property Default Value attribute

Hello @gregsn and @Elias ,

this is a historic one:
how can I define a default value for a property of a class?
atm, there’s no such attribute available via Inspector

Is there still a block on implementing it?
if that’s something that you cannot see implementing soon, I’ll start implementing an ugly workaround, using custom metadata + constructor dictionary (delegate from type and metadata to object). 🤢

We should distinguish metadata from the behavior of your class.

I would answer this question like so:
Write into the property on Create by writing into the Pad. The property now has this default value.

Adding a default attribute makes sense, but this would only be some meta information that widgets could pick up, which then allow the end user to easily reset a property to a default value.

So which one are you actually asking for?

The second one :)
I need to describe the “nature” of this property so that external editors can know more about it and, for example, reset it to its default value

1 Like

you can test-drive it with latest previews @dottore

1 Like