JavaScript AND (Name == 1Password AND NPM == 17984)

About this example

Two AND conditions must be true to highlight the Name and NPM columns.

Configuration

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