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
{{ message }}
This repository was archived by the owner on Apr 30, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+15-10Lines changed: 15 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ NOTE: All of these properties will be under the `templateOptions` property as of
52
52
>`label` is used to add an html label to each field.
53
53
54
54
###### Default
55
-
>A default is set for each field based on its type. ie `Text`, `Checkbox`, `Password`
55
+
>`undefined`
56
56
57
57
---
58
58
##### required (boolean)
@@ -105,8 +105,6 @@ Below is a detailed description of each form fields and its custom properties.
105
105
#### Input form field
106
106
>The input uses the <input> element and allows you to specify it's type via the type property
107
107
108
-
##### default (string, optional)
109
-
110
108
_Example text field_
111
109
```json
112
110
{
@@ -124,8 +122,6 @@ _Example text field_
124
122
#### Textarea form field
125
123
>The textarea field creates multiline input with a textarea element.
126
124
127
-
##### default (string, optional)
128
-
129
125
##### lines (number, optional)
130
126
>`lines` sets the rows attribute for the textarea element.
131
127
@@ -147,8 +143,6 @@ _Example textarea field_
147
143
#### Checkbox form field
148
144
>The checkbox field allows checkbox input with a input element set to `type='checkbox'`. It doesn't have any custom properties.
149
145
150
-
##### default (boolean, optional)
151
-
152
146
_Example checkbox field_
153
147
```json
154
148
{
@@ -196,12 +190,23 @@ _Example radio field_
196
190
#### Select form field
197
191
>The select field allows selection via dropdown using the select element.
198
192
199
-
##### default (number, optional)
200
-
>The default can be set to the index of one of the `options`.
201
-
202
193
##### options (array, required)
203
194
>`options` is an array of options for the select form field to display. Each option should be an object with a `name`(string). You may optionally add a `group` to some or all of your options.
204
195
196
+
##### labelProp (string, optional)
197
+
>`labelProp` is what is used for what is shown to the user. Defaults to `name`
198
+
199
+
##### valueProp (string, optional)
200
+
>`valueProp` is what is used for the value assigned to the model. Defaults to `value`
201
+
202
+
##### groupProp (string, optional)
203
+
>`groupProp` is what is used to group the options
204
+
205
+
##### ngOptions (string, optional)
206
+
>If provided, this is used instead of the default `ng-options` giving you full control (and rendering the other options uncessisary.
0 commit comments