DataGridCellContent: string | number | SparkChart | Icon | undefined

Type definition of DataGrid cell content.

string:

Display supplied string inside cell. Text fill style, font and alignment can be customized. See documentation of DataGrid for more details.

number:

Display supplied number inside cell. Text fill style, font and alignment can be customized. See documentation of DataGrid for more details.

SparkChart:

Place a miniature chart (Spark Chart) inside the cell according to the provided description.

 // Example, spark line chart
DataGrid.setCellContent(0, 0, {
type: 'spark-line',
data: [0, 10, 6, 4, 9, 8, 3, 6]
})

To learn of available types of Spark Charts as well as all optional configuration properties, see SparkChart.

Icon:

Show an Icon inside the cell. Icon alignment can be customized with the same method as text.

 // Example, place an Icon inside a data grid cell.
DataGrid.setCellContent(0, 0, myIcon)

To learn how to load Icons, see addCustomIcon.

undefined:

Show nothing inside the cell. This retains style information of the cell, in contrast to removing the cell.