Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render HTML in inspector #848

Open
mariusconjeaud opened this issue Apr 5, 2024 · 2 comments
Open

Render HTML in inspector #848

mariusconjeaud opened this issue Apr 5, 2024 · 2 comments
Labels
2.4.9 good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mariusconjeaud
Copy link
Collaborator

mariusconjeaud commented Apr 5, 2024

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 mariusconjeaud added the good first issue Good for newcomers label Apr 5, 2024
@nielsdejong nielsdejong added the help wanted Extra attention is needed label Apr 8, 2024
@mariusconjeaud mariusconjeaud added the 2.4.5 Patch release label Apr 9, 2024
mariusconjeaud added a commit that referenced this issue Apr 18, 2024
@mariusconjeaud
Copy link
Collaborator Author

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
Copy link
Collaborator Author

mariusconjeaud commented May 16, 2024

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

@alfredorubin96 alfredorubin96 removed the 2.4.5 Patch release label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.4.9 good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants