TableColorConfig (table)
@ckeditor/ckeditor5-table/src/table
typedef
Array.<(String | Object)>
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
.