toHtml

fun toHtml(configuration: DisplayConfiguration = DisplayConfiguration.DEFAULT, cellRenderer: CellRenderer = DefaultCellRenderer, getFooter: (DataFrame<T>) -> String? = { "DataFrame [${it.size}]" }): DataFrameHtmlData

Returns a DataFrameHtmlData without additional definitions. Can be rendered in Jupyter kernel (Kotlin Notebook) environments or other environments that already have CSS- and script definitions for DataFrame.

Use toStandaloneHtml if you need the DataFrameHtmlData to include CSS- and script definitions.

By default, cell content is formatted as text Use RenderedContent.media or IMG, IFRAME if you need custom HTML inside a cell.

For more information: See toHtml on the documentation website.

Parameters

configuration

The DisplayConfiguration to use as a base for this FormattedFrame. Default: DisplayConfiguration.DEFAULT.

cellRenderer

Mostly for internal usage, use DefaultCellRenderer if unsure.

getFooter

Allows you to specify how to render the footer text beneath the dataframe. Default: "DataFrame [rows x cols]"

See also