An object which holds the configuration data for a cell.
A type alias for a cell renderer config function.
This type is used to compute a value from a cell config object.
A type alias for a cell renderer config option.
A config option can be a static value or a config function.
A type alias for the supported ellipsis sides.
A type alias for a format function.
A type alias for the supported horizontal alignment modes.
A type alias for the supported vertical alignment modes.
Construct a new text renderer.
The options for initializing the renderer.
The CSS color for the cell background.
Which side to draw the ellipsis.
The CSS shorthand font for drawing the text.
The format function for the cell value.
The horizontal alignment for the cell text.
The CSS color for drawing the text.
The vertical alignment for the cell text.
Boolean flag for applying text wrapping.
Draw the background for the cell.
The graphics context to use for drawing.
The configuration data for the cell.
Draw the text for the cell.
The graphics context to use for drawing.
The configuration data for the cell.
Paint the content for a cell.
The graphics context to use for drawing.
The configuration data for the cell.
Create a date format function.
The options for creating the format function.
A new date format function.
This formatter uses Date.toDateString()
to format the values.
If a value is not a Date
object, new Date(value)
is used to
coerce the value to a date.
The formatIntlDateTime()
formatter is more flexible, but slower.
Create a scientific notation format function.
The options for creating the format function.
A new scientific notation format function.
This formatter uses the builtin Number()
and toExponential()
to coerce values.
The formatIntlNumber()
formatter is more flexible, but slower.
Create a fixed decimal format function.
The options for creating the format function.
A new fixed decimal format function.
This formatter uses the builtin Number()
and toFixed()
to
coerce values.
The formatIntlNumber()
formatter is more flexible, but slower.
Create a generic text format function.
The options for creating the format function.
A new generic text format function.
This formatter uses the builtin String()
to coerce any value
to a string.
Create an ISO datetime format function.
The options for creating the format function.
A new ISO datetime format function.
This formatter uses Date.toISOString()
to format the values.
If a value is not a Date
object, new Date(value)
is used to
coerce the value to a date.
The formatIntlDateTime()
formatter is more flexible, but slower.
Create an international datetime format function.
The options for creating the format function.
A new international datetime format function.
This formatter uses the builtin Intl.DateTimeFormat
object to
coerce values.
This is the most flexible (but slowest) datetime formatter.
Create an international number format function.
The options for creating the format function.
A new international number format function.
This formatter uses the builtin Intl.NumberFormat
object to
coerce values.
This is the most flexible (but slowest) number formatter.
Create a significant figure format function.
The options for creating the format function.
A new significant figure format function.
This formatter uses the builtin Number()
and toPrecision()
to coerce values.
The formatIntlNumber()
formatter is more flexible, but slower.
Create a time format function.
The options for creating the format function.
A new time format function.
This formatter uses Date.toTimeString()
to format the values.
If a value is not a Date
object, new Date(value)
is used to
coerce the value to a date.
The formatIntlDateTime()
formatter is more flexible, but slower.
Create a UTC datetime format function.
The options for creating the format function.
A new UTC datetime format function.
This formatter uses Date.toUTCString()
to format the values.
If a value is not a Date
object, new Date(value)
is used to
coerce the value to a date.
The formatIntlDateTime()
formatter is more flexible, but slower.
Measure the height of a font.
The CSS font string of interest.
The height of the font bounding box.
This function uses a temporary DOM node to measure the text box height for the specified font. The first call for a given font will incur a DOM reflow, but the return value is cached, so any subsequent call for the same font will return the cached value.
Resolve a config option for a cell renderer.
The config option to resolve.
The cell config object.
The resolved value for the option.
Generated using TypeDoc
A cell renderer which renders data values as text. The namespace for the
TextRenderer
class statics.