Skip to contents

Set text area formatter

Usage

set_formatter_textarea(widget, columns, hoz_align = "left")

Arguments

widget

A tabulator() HTML widget.

columns

The names of the columns the formatter is applied to.

hoz_align

(character): The horizontal alignment of the column.

Value

The updated tabulator() HTML widget

Examples

data <- data.frame(
  id = c(1, 2),
  txt = c(
    "This\nis\nsome\ntext\nwith\nmultiple\nline\nbreaks",
    "- R\n- Python\n- Julia"
  )
)

tabulator(data, width = 200) |>
  set_formatter_textarea("txt")