jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
41.35k stars 7.67k forks source link

Enable using dropdown menus for a datafield property on a custom shape #4659

Open chris-hampel-CA opened 1 month ago

chris-hampel-CA commented 1 month ago

Is your feature request related to a problem? Please describe. Feature request is not related to a problem with the tool, but its addition would make it easier to use in some situations

Describe the solution you'd like When making custom shapes, after selecting Edit Data, a user can add property data with as many fields as they want. The data is always distinguished by a name, and a blank text box, which can contain any information, appears.

For my purposes, I seek to create a library of shapes for other users to make specific flowsheets. There are certain shapes where I would like one of the data fields to only be one selection from a predefined list of options. Rather than requiring the user to know what the set of options is and the exact valid name of each possible option, I would like to create a shape such that I can add the list of options displayed as a "dropdown menu" for the data field.

Describe alternatives you've considered

Additional context Add any other context or screenshots about the feature request here.