neo4j-labs / neodash

NeoDash - a Dashboard Builder for Neo4j
https://neo4j.com/labs/neodash/
Apache License 2.0
397 stars 129 forks source link

Render HTML in inspector #848

Open mariusconjeaud opened 3 months ago

mariusconjeaud commented 3 months ago

In the below example, we show the content of the inspector when clicking on a box in the Gantt chart.

Some string properties contain HTML (<span style="color:red">my string</span><span style="color:green">my other string</span> in this case), and this gets rendered with random line breaks not contained in the original string.

So, it looks like HTML could work, but is not officially supported.

(Sorry for the example data displayed, this is real data coming from Clinical Study definitions and the example that was shared with me to illustrate the bug...)

image

mariusconjeaud commented 1 month ago

We managed to get this working in default setup (simple table, no wrapping, no arrays,...) ; but it was inducing side effects on non-standard setup.

Now that wrapping for tables is under control and the RenderArray method has been improved, it is worth doing another try.

mariusconjeaud commented 1 month ago

State of things when adding div wrapping back into RenderString ; note the Arrays give that weird display. Card title from a parameter containing an array is also off.

image