Add a number renderer to one or more columns using
DataTables' built-in DataTable.render.number.
Usage
dt2_format_number(
options = list(),
col_specs,
thousands = NULL,
decimal = NULL,
digits = 0,
prefix = "",
prefix_right = ""
)Arguments
- options
List of options (returned, with
columnDefsupdated).- col_specs
Column names or 1-based indices to format.
- thousands
Thousands separator (character or
NULLfor auto).- decimal
Decimal separator (character or
NULLfor auto).- digits
Number of decimal places.
- prefix, prefix_right
String to prepend/append (e.g., currency symbol).
