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 |
|
value |
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 |
|
|
filter-cell-unfiltered |
|
|
group-header-collapsed |
|
|
group-header-expanded |
|
|
column-header-cell-sorted-ascending |
|
|
column-header-cell-sorted-descending |
|
|
group-by-panel-element-remove-command |
|
|
set-command |
|
|
cancel-command |
|
|
remove-command |
|
|
no-item-selected |
|
|
operator-equal-to |
|
|
operator-not-equal-to |
|
|
operator-greater-than |
|
|
operator-greater-than-or-equal-to |
|
|
operator-less-than |
|
|
operator-less-than-or-equal-to |
|
|
operator-contains |
|
|
operator-not-contain |
|
|
operator-starts-with |
|
|
operator-ends-with |
|
|
goto-first-command |
|
|
goto-previous-command |
|
|
goto-next-command |
|
|
goto-last-command |
|
|
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.