ImageDefinitionCollection / PartialImageDefinitionCollection

Description

An ImageDefinitionCollection represents a collection of key/value pairs, where key is a string used to identify the corresponding ImageDefinition. It extends ResourceCollection<T>.

Properties

Property

Element

Type

Description

key

 

string

The identifier of the ImageDefinition.

 

value

ImageDefinition

Represent an image to customize.

Supported values

At this time, the following image/icons elements can be customized:

Key

Light theme image

Target element

filter-cell-filtered

FilterCell

filter-cell-unfiltered

FilterCell

group-header-collapsed

GroupHeader

group-header-expanded

GroupHeader

column-header-cell-sorted-ascending

ColumnHeaderCell

column-header-cell-sorted-descending

ColumnHeaderCell

group-by-panel-element-remove-command

GroupByPanelElement

set-command

FilterEditor

cancel-command

FilterEditor

remove-command

FilterEditor

no-item-selected

FilterEditor comboBox

operator-equal-to

FilterOperator

operator-not-equal-to

FilterOperator

operator-greater-than

FilterOperator

operator-greater-than-or-equal-to

FilterOperator

operator-less-than

FilterOperator

operator-less-than-or-equal-to

FilterOperator

operator-contains

FilterOperator

operator-not-contain

FilterOperator

operator-starts-with

FilterOperator

operator-ends-with

FilterOperator

goto-first-command

Paginator

goto-previous-command

Paginator

goto-next-command

Paginator

goto-last-command

Paginator

Example

const imageDefinitions = {

  "filter-cell-filtered": { source: " https://img.icons8.com/ios-filled/32/000000/filter-edit.png" },

};

Remarks

The boolean viewer image (Light theme image = ) can be customized by providing a ViewerDefinition that targets the boolean viewer and which provides a new ImageViewerProvider.

A partial type/interface is an object in which properties are optional.