During development, I did prototype with a Buttons editor (and a "Templated List" editor, where you could add custom HTML), but they were a little too experimental for the initial v1.0 release. I'm hoping to include them in a future release.
public Dictionary<string, object> DefaultValues => default;
Do you have any examples of how to set a default value?
EDIT---
Ahh.. that is for config default values.. ;) What I was looking for was a way to set a initial default value from the list... guess i can put in a textfield in the config and just type the value.. ;)
Custom list editor
Hi Lee,
This package is super nice.. :D .. I'm pretty sure that I will use this in every upcomming project.. ;)
A really nice feature would be the posibility to add your own list editor..
So you could build something like this or other editors.. ;)
/ulrich
Hi Ulrich, thanks for the nice feedback!
You can definitely create your own custom list editors, here's some initial documentation. (It probably needs to be expanded out to its own page).
https://github.com/leekelleher/umbraco-contentment/blob/develop/docs/editors/data-list.md#extending-with-your-own-custom-list-editor
Here's an example of how the CheckboxList one is built...
During development, I did prototype with a Buttons editor (and a "Templated List" editor, where you could add custom HTML), but they were a little too experimental for the initial v1.0 release. I'm hoping to include them in a future release.
Cheers,
- Lee
Oh.. very sweet... :D
..better tell my wife it is going to be late tonight.. ;)
/ulrich
I hope your wife is forgiving. ;-)
She is.. ;) .. and this is really, really cool... :D
Great work.. ! :D
Hi Lee,
I'm a bit curious about this:
Do you have any examples of how to set a default value?
EDIT---
Ahh.. that is for config default values.. ;) What I was looking for was a way to set a initial default value from the list... guess i can put in a textfield in the config and just type the value.. ;)
/ulrich
Hi Ulrich, yeah you're correct, those are the default values for the config.
Setting the default value for the property can be done as you said. 👍
Hi Lee,
This is really cool.. ;) .. the sky is the limit.. :D
/ulrich
Awesome! 🎉 #h5yr
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.