@@ -110,6 +110,12 @@ https://anyroad.github.io/react-json-view-lite/
110
110
| field | string? | Field name |
111
111
| newExpandValue | boolean | if node is about to be expanded (` true ` ) or collapsed (` false ` ) |
112
112
113
+ ## interface AriaLabels
114
+
115
+ | Field Name | Type | Description |
116
+ | collapseJson | string | ` aria-label ` property for the "collapse" node button. Default value is "collapse JSON". |
117
+ | expandJson | string | ` aria-label ` property for the "expand" node button. Default value is "expand JSON". |
118
+
113
119
### Extra exported
114
120
115
121
| Name | Type | Description |
@@ -121,25 +127,26 @@ https://anyroad.github.io/react-json-view-lite/
121
127
122
128
### StyleProps
123
129
124
- | Name | Type | Description |
125
- | ----------------------- | ------- | ----------------------------------------------------------------------------------------------------------------- |
126
- | container | string | CSS class name for rendering parent block |
127
- | childFieldsContainer | string | CSS class name for rendering parent block of array or object |
128
- | basicChildStyle | string | CSS class name for property block containing property name and value |
129
- | collapseIcon | string | CSS class name for rendering button collapsing Object and Array nodes. Default content is ` ▾ ` . |
130
- | expandIcon | string | CSS class name for rendering button expanding Object and Array nodes. Default content is ` ▸ ` . |
131
- | collapsedContent | string | CSS class name for rendering placeholder when Object and Array nodes are collapsed. Default contents is ` ... ` . |
132
- | label | string | CSS class name for rendering property names |
133
- | clickableLabel | string | CSS class name for rendering clickable property names (requires the ` clickToExpandNode ` prop to be true) |
134
- | nullValue | string | CSS class name for rendering null values |
135
- | undefinedValue | string | CSS class name for rendering undefined values |
136
- | numberValue | string | CSS class name for rendering numeric values |
137
- | stringValue | string | CSS class name for rendering string values |
138
- | booleanValue | string | CSS class name for rendering boolean values |
139
- | otherValue | string | CSS class name for rendering all other values except Object, Arrray, null, undefined, numeric, boolean and string |
140
- | punctuation | string | CSS class name for rendering ` , ` , ` [ ` , ` ] ` , ` { ` , ` } ` |
141
- | noQuotesForStringValues | boolean | whether or not to add double quotes when rendering string values, default value is ` false ` |
142
- | quotesForFieldNames | boolean | whether or not to add double quotes when rendering field names, default value is ` false ` |
130
+ | Name | Type | Description |
131
+ | ----------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------- |
132
+ | container | string | CSS class name for rendering parent block |
133
+ | childFieldsContainer | string | CSS class name for rendering parent block of array or object |
134
+ | basicChildStyle | string | CSS class name for property block containing property name and value |
135
+ | collapseIcon | string | CSS class name for rendering button collapsing Object and Array nodes. Default content is ` ▾ ` . |
136
+ | expandIcon | string | CSS class name for rendering button expanding Object and Array nodes. Default content is ` ▸ ` . |
137
+ | collapsedContent | string | CSS class name for rendering placeholder when Object and Array nodes are collapsed. Default contents is ` ... ` . |
138
+ | label | string | CSS class name for rendering property names |
139
+ | clickableLabel | string | CSS class name for rendering clickable property names (requires the ` clickToExpandNode ` prop to be true) |
140
+ | nullValue | string | CSS class name for rendering null values |
141
+ | undefinedValue | string | CSS class name for rendering undefined values |
142
+ | numberValue | string | CSS class name for rendering numeric values |
143
+ | stringValue | string | CSS class name for rendering string values |
144
+ | booleanValue | string | CSS class name for rendering boolean values |
145
+ | otherValue | string | CSS class name for rendering all other values except Object, Arrray, null, undefined, numeric, boolean and string |
146
+ | punctuation | string | CSS class name for rendering ` , ` , ` [ ` , ` ] ` , ` { ` , ` } ` |
147
+ | noQuotesForStringValues | boolean | whether or not to add double quotes when rendering string values, default value is ` false ` |
148
+ | quotesForFieldNames | boolean | whether or not to add double quotes when rendering field names, default value is ` false ` |
149
+ | ariaLables | AriaLables | Text to use for the ` aria-label ` properties |
143
150
144
151
## Comparison with other libraries
145
152
0 commit comments