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
Copy file name to clipboardExpand all lines: docs/index.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -192,6 +192,7 @@ attribute which should be placed along side `sf-schema`.
192
192
| supressPropertyTitles | by default schema form uses the property name in the schema as a title if none is specified, set this to true to disable that behavior |
193
193
| formDefaults | an object that will be used as a default for all form definitions |
194
194
| validationMessage | an object or a function that will be used as default validation message for all fields. See [Validation Messages](#validation-messages) for details. |
195
+
| setSchemaDefaults | boolean, set to false an no defaults from the schema will be set on the model. |
195
196
| destroyStrategy | the default strategy to use for cleaning the model when a form element is removed. see [destroyStrategy](#destroyStrategy) below |
196
197
197
198
*formDefaults* is mostly useful for setting global [ngModelOptions](#ngmodeloptions)
@@ -625,7 +626,7 @@ General options most field types can handle:
625
626
onChange:"valueChanged(form.key,modelValue)", // onChange event handler, expression or function
626
627
feedback:false, // Inline feedback icons
627
628
disableSuccessState:false, // Set true to NOT apply 'has-success' class to a field that was validated successfully
628
-
disableErrorState:false, // Set true to NOT apply 'has-error' class to a field that failed validation
629
+
disableErrorState:false, // Set true to NOT apply 'has-error' class to a field that failed validation
629
630
placeholder:"Input...", // placeholder on inputs and textarea
630
631
ngModelOptions: { ... }, // Passed along to ng-model-options
631
632
readonly:true, // Same effect as readOnly in schema. Put on a fieldset or array
@@ -874,7 +875,7 @@ They do need a list of ```items``` to have as children.
874
875
875
876
### select and checkboxes
876
877
877
-
*select* and *checkboxes* can take an attribute, `titleMap`, wich defines a name
878
+
*select* and *checkboxes* can take an attribute, `titleMap`, which defines a name
878
879
and a value. The value is bound to the model while the name is used for display.
879
880
In the case of *checkboxes* the names of the titleMap can be HTML.
0 commit comments