toStaticHtml

fun AnyFrame.toStaticHtml(configuration: DisplayConfiguration = DisplayConfiguration.DEFAULT, cellRenderer: CellRenderer = DefaultCellRenderer, includeCss: Boolean = true, openNestedDfs: Boolean = false): DataFrameHtmlData

Renders this DataFrame as static HTML (meaning no JS is used). CSS rendering is enabled by default but can be turned off using includeCss

IMPORTANT: If JavaScript is enabled, the table inside the returned DataFrameHtmlData will be HIDDEN when rendered. This is done so this function can be used as a fallback mechanism for AnyFrame.toHtmlData, which requires JavaScript to be displayed. Call .copy(script = "") on the returned DataFrameHtmlData to remove this hiding/fallback mechanism.

Parameters

configuration

optional configuration for rendering

cellRenderer

optional cell renderer for rendering

includeCss

whether to include CSS in the output. This is true by default but it can be set to false to emulate what happens in environments where custom CSS is not allowed.

openNestedDfs

whether to open nested dataframes. This is false by default byt ut can be set to true to emulate what happens in environments where <details> tags are not supported.