leekelleher / umbraco-package-ideas

Open ideas for Umbraco community packages
http://leekelleher.github.io/umbraco-package-ideas/
Other
18 stars 3 forks source link

Tuple editor #47

Open skttl opened 2 months ago

skttl commented 2 months ago

Idea summary

For creating values of eg <IPublishedContent, string>, a tuple editor is a wrapper for 2 or more existing datatype. The datatypes could in theory be anything, like a block grid and block list (good luck finding a use case for that 😜).

In regards to UI my idea is to make a flexbox with wrapping enabled (could be configurable) , and then just pop the editors in next to each other.

My use case right now is to make a text string editor, with a dropdown next to it, to select heading level.

The value converter should simply return a tuple with each of the datatypes return values.

Which categories would the idea fit?

Code of Conduct

leekelleher commented 1 week ago

For inspiration, here's the source code for the Tuple editor for Umbraco 7: https://github.com/umco/umbraco-tuple/tree/develop