-
Notifications
You must be signed in to change notification settings - Fork 4
Commit fcc4988
[FEATURE] Groups
* Add support for schema.groups, schema.groups legend & field id prefixes
* Add support for grouping fields. You still can to put fields as always in combination with groups.
* Add support for an optional legend for each group/fieldset. Expects the schema to look something like this:
```
section1: {
groups:[{
legend: "Contact Details",
fields: [
{
type: "input",
inputType: "text",
label: "Name",
model: "name"
},
{
type: "input",
inputType: "email",
label: "Email",
model: "email"
}
]
},{
legend: "Other Details",
fields: [
{
type: "input",
inputType: "text",
label: "More",
model: "more"
},
{
type: "input",
inputType: "text",
label: "Things",
model: "things"
}
]
}]
},
```
* Add support for field id prefixes, at the form level. So you can add a `fieldIdPrefix: 'prefix_here_'` to your `formOptions` and this will be prepended to _all_ field id's.
Based on phemisystems/vue-form-generator@a6165c8 @dflock @phemisystems 1 parent 189b4b4 commit fcc4988
1 file changed
+34
-15
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 | - | ||
22 | - | ||
23 | - | ||
24 | - | ||
25 | - | ||
26 | - | ||
27 | - | ||
28 | - | ||
29 | - | ||
30 | - | ||
31 | - | ||
32 | - | ||
33 | - | ||
34 | - | ||
35 | - | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
36 | 55 |
| |
37 | 56 |
| |
38 | 57 |
| |
|
0 commit comments