Data List: Conditional Data types #131
Replies: 2 comments 11 replies
-
I had a look at how Conditional Displayers works, to see if there were any generic hooks to work with, but it doesn't look possible - well, not without re-designing Data List to be dependent on Conditional Displayers, (which I'm not interested in doing). Looking at how Conditional Displayers works, in the dropdown one, when the value changes, it triggers this event... https://github.com/KOBENDigital/ConditionalDisplayers/blob/2.3.0/src/App_Plugins/ConditionalDisplayers/propertyeditors/dropdownFlexible/dropdownFlexible.controller.js#L25 ...making a call to It appears that each of the dropdown values has options to set which property aliases can be shown and hidden. I'm unsure how that would work with Data List, nor how it would work across all the Data List editors (e.g. Item Picker). One approach could be to make use of Umbraco's Then, say for the Data List's dropdown editor, there is already an event for when the value changes, e.g. https://github.com/leekelleher/umbraco-contentment/blob/2.1.0/src/Umbraco.Community.Contentment/DataEditors/DropdownList/dropdown-list.js#L48 I've used the Theoretically, the conditional displayers could be configured elsewhere (rather than the property-editor/data-type itself) and the |
Beta Was this translation helpful? Give feedback.
-
I have started working on creating a couple of Data List Editors that use Conditional Displayers. I will update you once they are done so you can give some feedback. |
Beta Was this translation helpful? Give feedback.
-
It would be cool if we could use https://github.com/KOBENDigital/ConditionalDisplayers with the contentment data types 😁
Beta Was this translation helpful? Give feedback.
All reactions