Typedef

ColorDefinition (ui/colorgrid)

@ckeditor/ckeditor5-ui/src/colorgrid/colorgrid

typedef
Object

A color definition used to create a ColorTileView.

{
    color: 'hsl(0, 0%, 75%)',
    label: 'Light Grey',
    options: {
        hasBorder: true
    }
}

Filtering

Properties

  • color : String

    String representing a color. It is used as value of background-color style in ColorTileView.

  • label : String

    String used as label for ColorTileView.

  • options : Object

    Additional options passed to create a ColorTileView.

  • options.hasBorder : Boolean

    A flag that indicates if special a CSS class should be added to ColorTileView, which renders a border around it.