Skip to content

Commit e77b2f4

Browse files
committed
Accidentlay removed pristine docs
..now they are back
1 parent 6de42eb commit e77b2f4

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Diff for: docs/index.md

+11-9
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Example with custom submit buttons:
9999
Handling Submit
100100
---------------
101101
Schema Form does not care what you do with your data, to handle form submit
102-
the recommended way is to use the `ng-submit` directive. It's also recommended
102+
the recomended way is to use the `ng-submit` directive. It's also recomended
103103
to use a `name` attribute on your form so you can access the
104104
[FormController](https://code.angularjs.org/1.3.0-beta.15/docs/api/ng/type/form.FormController)
105105
and check if the form is valid or not.
@@ -161,7 +161,7 @@ Updating Form
161161
-------------
162162
163163
Schema Form watches `sf-form` and `sf-schema` and will redraw the form if one or both changes, but
164-
only if they change completely, i.e. not the same object and/or form instance. For performance
164+
only if they change completly, i.e. not the same object and/or form instance. For performance
165165
reasons we have opted to not watch schema and form deeply. So if you have updated a part of the
166166
schema or the form definition you can trigger a redraw by issuing the event `schemaFormRedraw`.
167167
@@ -187,13 +187,15 @@ attribute which should be placed along side `sf-schema`.
187187
`sf-options` takes an object with the following possible attributes.
188188
189189
190-
| Attribute | |
191-
|:--------------|:------------------------|
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-
| formDefaults | an object that will be used as a default for all form definitions |
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. |
196-
| destroyStrategy | the default strategy to use for cleaning the model when a form element is removed. see [destroyStrategy](#destroyStrategy) below |
190+
| Attribute | Type | |
191+
|:--------------|:------|:-------------------|
192+
| supressPropertyTitles | boolean |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+
| formDefaults | object | an object that will be used as a default for all form definitions |
194+
| validationMessage | object or function | 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 | Should schema defaults be set on model. |
196+
| destroyStrategy | string | the default strategy to use for cleaning the model when a form element is removed. see [destroyStrategy](#destroyStrategy) below |
197+
| pristine | Object `{errors ,success}` | Sets if errors and success states should be visible when form field are `$pristine`. Default is `{errors: true, success: true}` |
198+
| validateOnRender | boolean | Should form be validated on initial render? Default `false` |
197199
198200
*formDefaults* is mostly useful for setting global [ngModelOptions](#ngmodeloptions)
199201
i.e. changing the entire form to validate on blur.

0 commit comments

Comments
 (0)