You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|| fields | {} | An object with one or more field definitions in a key-value pair |
153
152
|| buttons |`{"add": "Add", "remove": "X", "duplicate": "Duplicate"}`| has 3 properties, all optional. These can be either function that returns the button or string which is the label for a button |
154
-
|| isObject | Bool | whether the grid displays an object. If set to true, buttons (add, remove and duplicate) will be disabled. |
153
+
|| isObject | Bool | whether the grid displays an object. If set to true, buttons (add, remove and duplicate) will be disabled. |
155
154
|| isSortable | Bool | whether the grid rows can be dragged and sorted |
156
155
|| tableContainerClass | String | htmlClass for the div wrapping the editable-grid |
157
156
|| tableClass | String | htmlClass for the main editable grid |
158
157
| div | renderer | String | div |
159
158
|| name | String | is used to prepend parent container's name to the children fields when "prefixNameToElement" is set to true. |
160
159
|| htmlClass | String | htmlClass for the div element |
160
+
| html-tag | renderer | String | html-tag |
161
+
|| name | String | is used to prepend parent container's name to the children fields when "prefixNameToElement" is set to true. |
162
+
|| as | String | html tag to be used (Default: 'div') |
163
+
|| htmlClass | String | htmlClass for the html-tag element |
161
164
| fieldset | renderer | String | fieldset |
162
165
|| name | String | is used to prepend parent container's name to the children fields when "prefixNameToElement" is set to true. |
163
166
|| title | String | label for the fieldset |
@@ -187,20 +190,23 @@ containers and keys or use the ones that come with the module.
|| fieldClass | String | html class for the main html/3-rd party form field ||
201
-
|| comment | String | comment / description that goes below the field ||
202
-
|| commentClass | String | html class for the comment element ||
203
-
|| template | React Component | String | define your custom template for the field (check `src/FieldTemplate.js`) or set the template in the template registry using `registerTemplate` and pass the string key here |
|| fieldClass | String | html class for the main html/3-rd party form field ||
204
+
|| comment | String | comment / description that goes below the field ||
205
+
|| commentAs | String | define the HTML tag to be used for wrapping the comment. (Default: <small />) ||
206
+
|| commentClass | String | html class for the comment element ||
207
+
|| template | React Component | String | define your custom template for the field (check `src/FieldTemplate.js`) or set the template in the template registry using `registerTemplate` and pass the string key here |
208
+
|| errorAs | String | define the HTML tag to be used for wrapping the error. (Default: <div />) ||
209
+
|| errorClass | String | html class for the error element ||
204
210
205
211
#### Field specific properties
206
212
@@ -254,6 +260,10 @@ containers and keys or use the ones that come with the module.
defaultValue: 'This is a field comment. You can add your text here'
85
+
defaultValue: 'This is some raw html text content: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum'
0 commit comments