TextDefinitionCollection / PartialTextDefinitionCollection
Description
A TextDefinitionCollection
represents a collection of key/value pairs, where key is a string used to identify the corresponding TextDefinition
. It extends ResourceCollection
<T>
.
Properties
Property |
Element |
Type |
Description |
---|---|---|---|
key |
|
string |
The identifier of the |
|
value |
Represent a text to customize. |
Supported values
A this time, the following text elements can be customized:
Key |
Default value |
Target element |
---|---|---|
group-by-panel-empty |
“Drag a column here to group” |
|
group-header-title-singular-form |
“item” |
The group title part of the |
group-header-title-plural-form |
“items” |
The group title part of the |
paginator-text-area-page-part |
“page” |
The "page" text part of the |
paginator-text-area-of-part |
“of” |
The "of" text part of the |
stat-result-not-supported |
“N/A” |
The aggregate is not supported by the |
stat-result-not-available |
“N/A” |
The "N/A" text when stat calculation cannot be done |
stat-result-divide-by-zero |
“DIV/0” |
The "DIV/0" text when the stat calculation divides a value by 0 |
Example
const textDefinitions = {
"group-by-panel-empty": { text: "Please drag a column here to group" },
};
Remarks
A partial type/interface is an object in which properties are optional.