Programmatically add data type to block list component
Hello,
I'm creating block list components programmatically following this documentation. But i have an issue with adding a property which represents a value from a dropdown data type. Could you help me to find a documentation or point me direction to look for?
For example, there is a text string property, which I add like:
{ "text", "hello" }
and this is displayed correctly.
But there is also another property values of which come from a dropdown ("h2", "h3", "h4") and I also add them like above:
yes that is custom dropdown with values mentioned above like h2, h3, h4
when I parse manually created block list it shows value similar to simple text string data type, but not showing up when added programmatically
Programmatically add data type to block list component
Hello,
I'm creating block list components programmatically following this documentation. But i have an issue with adding a property which represents a value from a dropdown data type. Could you help me to find a documentation or point me direction to look for?
For example, there is a text string property, which I add like:
and this is displayed correctly. But there is also another property values of which come from a dropdown ("h2", "h3", "h4") and I also add them like above:
But for above case value is not displayed.
I look forward for any help.
Thanks
Hi,
All property editors are described here https://our.umbraco.com/documentation/Fundamentals/Backoffice/Property-Editors/Built-in-Property-Editors/
Most of them contain examples on how to set the values via the build-in services.
The
headingType
seem to be custom. Is that a dropdown you created by yourself?yes that is custom dropdown with values mentioned above like h2, h3, h4 when I parse manually created block list it shows value similar to simple text string data type, but not showing up when added programmatically
is working on a reply...