Typedef

TableColorConfig (table)

@ckeditor/ckeditor5-table/src/tableconfig

typedefArray<ColorOption>

An array of color definitions (either strings or objects).

const colors = [
	{
		color: 'hsl(0, 0%, 60%)',
		label: 'Grey'
	},
	'hsl(0, 0%, 80%)',
	{
		color: 'hsl(0, 0%, 90%)',
		label: 'Light grey'
	},
	{
		color: 'hsl(0, 0%, 100%)',
		label: 'White',
		hasBorder: true
	},
	'#FF0000'
]

Usually used as a configuration parameter, for instance in config.table.tableProperties or config.table.tableCellProperties.

Filtering