JavaScript Simple

About this example

Highlights the Product column when Product == '1Password' in a JavaScript data source.

Configuration

columnHighlighter: {
  rules: [
    {
      conditionsContainer: [
        { logic: 'AND', conditions: [{ columnName: 'Product', operator: 'eq', type: 'string', value: '1Password' }] }
      ],
      targets: [{ column: 'Product', css: { 'background-color': '#fa8072', color: '#000' } }]
    }
  ]
}