htmltools_value: Convert a flextable to an HTML object

View source: R/printers.R

htmltools_valueR Documentation

Convert a flextable to an HTML object

Description

get a htmltools::div() from a flextable object. This can be used in a shiny application. For an output within "R Markdown" document, use knit_print.flextable.

Usage

htmltools_value(
  x,
  ft.align = NULL,
  ft.shadow = NULL,
  extra_dependencies = NULL
)

Arguments

x

a 'flextable' object, see flextable-package to learn how to create 'flextable' object.

ft.align

flextable alignment, supported values are 'left', 'center' and 'right'.

ft.shadow

deprecated.

extra_dependencies

a list of HTML dependencies to add in the HTML output.

Value

an object marked as htmltools::HTML ready to be used within a call to shiny::renderUI for example.

See Also

Other functions for flextable output and export: df_printer(), flextable_to_rmd(), gen_grob(), knit_print.flextable(), plot.flextable(), print.flextable(), save_as_docx(), save_as_html(), save_as_image(), save_as_pptx(), save_as_rtf(), to_html.flextable(), wrap_flextable()

Examples

htmltools_value(flextable(iris[1:5, ]))

flextable documentation built on June 2, 2026, 9:08 a.m.