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

Allow dynamic referencing of JSON custome links or substituting custome properties in costume links #4599

Open ZsoltMONOLITE opened 3 months ago

ZsoltMONOLITE commented 3 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I read AtoZ all the documentations, and feels like i learnt a lot, however, one thing i can not got through. What i want to do is that simmilar concept like the "Kanban" board, but there are more

Describe the solution you'd like A clear and concise description of what you want to happen. SolutionA: Allow referencing custume properties(custome link) as place holders in "link" property, see images Container= lane:json Shape= link:%lane% Gives error when clicked as per SS, and its also changes the link to show the JSON until the first "{"

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. SolutionB: Allow dynamic substitution in JSON by using costume properties. Container= lane:glane Shape= link: JSON (but when referencing ie "cells" the placeholder to be used %lane%) If need to another steps could be implemented for the shape to have "laneid:%lane%" and maybe in this case the % can be avoided in the json, and only "laneid" to be used

Additional context Add any other context or screenshots about the feature request here. I know its not christmass, but anychance for "conditionals" in the future especially regarding custome props? Or shape properties to be used as custome property? (Ie Im doing UI design, and checkmark shape, its quite nested in my groupped containers at the botton to make it look right[containers dont display rounded corners], while i can placeholder a text, if i want to change the fill color or the the state "checked" i have to dig deep to find the original at the botton, it woulld be so simple the do it like the text to use the shape property as it is in the properties list and based on containers "checked" value would change the shape's "checked" value as well if placeholer is checked. (I know, im all good until easter with the wishes)

Thanks again