set_formatter_textarea: Set text area formatter

View source: R/columns.R

set_formatter_textareaR Documentation

Set text area formatter

Description

Set text area formatter

Usage

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

Arguments

widget

A tabulator() HTML widget.

column

The name of the column 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")

rtabulator documentation built on Sept. 23, 2024, 5:11 p.m.