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

Change toHTML rendering to allow custom HTML content inside cells and not just text #967

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

koperagen
Copy link
Collaborator

fixes #319

@koperagen koperagen added bug Something isn't working enhancement New feature or request labels Nov 25, 2024
@koperagen koperagen added this to the 0.16.0 milestone Nov 25, 2024
@koperagen koperagen self-assigned this Nov 25, 2024
@koperagen koperagen force-pushed the html-in-cell-rendering branch from 3ee238f to 8d59c97 Compare November 25, 2024 14:51
Copy link
Collaborator

@Jolanrensen Jolanrensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool :D

@@ -23,6 +23,6 @@ public data class IMG(
if (height != null) style.append("height:${height}px;")
if (maxWidth != null) style.append("max-width:${maxWidth}px;")
if (maxHeight != null) style.append("max-height:${maxHeight}px;")
return """<img src="$src" style="$style"}/>"""
return """<img src="$src" style="$style"/>"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow good find

@@ -514,6 +516,8 @@ private fun AnyFrame.getColumnsHeaderGrid(): List<List<ColumnWithPathWithBorder<
internal fun DataFrameHtmlData.print() = println(this)

/**
* By default, cell content is formatted as text
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very helpful comment, thanks!

@koperagen koperagen merged commit ebe6f9a into master Dec 3, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rendering of IMG, IFrame appears to be broken
2 participants