You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io/html.kt
+13-1
Original file line number
Diff line number
Diff line change
@@ -518,7 +518,11 @@ internal fun DataFrameHtmlData.print() = println(this)
518
518
/**
519
519
* By default, cell content is formatted as text
520
520
* Use [RenderedContent.media] or [IMG], [IFRAME] if you need custom HTML inside a cell.
521
-
* @return DataFrameHtmlData with table script and css definitions. Can be saved as an *.html file and displayed in the browser
521
+
*
522
+
* The [DataFrameHtmlData] be saved as an *.html file and displayed in the browser.
523
+
* If you save it as a file and find it in the project tree,
524
+
* the ["Open in browser"](https://www.jetbrains.com/help/idea/editing-html-files.html#ws_html_preview_output_procedure) feature of IntelliJ IDEA will automatically reload the file content when it's updated
525
+
* @return DataFrameHtmlData with table script and css definitions
@@ -620,10 +624,18 @@ public data class DataFrameHtmlData(
620
624
destination.writeText(toString())
621
625
}
622
626
627
+
publicfunwriteHTML(destination:String) {
628
+
File(destination).writeText(toString())
629
+
}
630
+
623
631
publicfunwriteHTML(destination:Path) {
624
632
destination.writeText(toString())
625
633
}
626
634
635
+
/**
636
+
* Opens a new tab in your default browser.
637
+
* Consider [writeHTML] with the [HTML file auto-reload](https://www.jetbrains.com/help/idea/editing-html-files.html#ws_html_preview_output_procedure) feature of IntelliJ IDEA if you want to experiment with the output and run program multiple times
638
+
*/
627
639
publicfunopenInBrowser() {
628
640
val file =File.createTempFile("df_rendering", ".html")
0 commit comments