Skip to content

Commit abf1186

Browse files
authored
Merge pull request #1 from vue-generators/feature/minor-doc-updates
Feature/minor doc updates
2 parents 2241ed9 + f962488 commit abf1186

File tree

7 files changed

+26
-19
lines changed

7 files changed

+26
-19
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ VueFormGenerator is a schema-based form generator component for [Vue.js](https:/
77
## Demo
88

99
[JSFiddle simple example](https://jsfiddle.net/zoul0813/d8excp36/)
10+
[CodePen simple example](https://codepen.io/zoul0813/pen/OrNVNw)
1011

1112
## Features
1213

1314
* multiple objects editing
1415
* core & full bundles
15-
* 21 field types
16+
* 21+ field types
1617
* grouping fields
1718
* built-in validators
1819
* Bootstrap friendly templates
@@ -22,11 +23,11 @@ VueFormGenerator is a schema-based form generator component for [Vue.js](https:/
2223

2324
## Documentation
2425

25-
[Link to documentation on Gitbook](https://icebob.gitbooks.io/vueformgenerator/content/)
26+
[Link to documentation on Gitbook](https://vue-generators.gitbook.io/vue-generators/)
2627

2728
## More fields `*new*`
2829

29-
VueFormGenerator support custom fields.
30+
VueFormGenerator supports custom fields.
3031
If you decide to release your custom field into the wild, please [open a new issue](https://github.com/vue-generators/vue-form-generator/issues) so we can add you to a list here!
3132
Please try to use this naming convention for your custom field : `vfg-field-*`
3233
Example :
@@ -35,7 +36,7 @@ Example :
3536
* `vfg-field-calendar`
3637
* `vfg-field-awesome-dropdown`
3738

38-
This way, it will be easier for everyone to find it. Thank you !
39+
This way, it will be easier for everyone to find it. Thank you!
3940

4041
## License
4142

component.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
| [options](options.md) | `Object` | `{`<br/>`validateAfterLoad: false,`<br/>`validateAsync: false,`<br/>`validateAfterChanged: false,`<br/>` validationErrorClass: "error",`<br/>`validationSuccessClass: ""`<br/>`}` | Options for the VueFormComponent |
1414
| multiple | `Boolean` | `false` | If true, we only show `multi: true` fields |
1515
| isNewModel | `Boolean` | `false` | If true, we won't run validation after load |
16-
| tag | `String` | "fieldset" | Change the main HTML element of VueFormGenerator |
16+
| tag | `String` | "fieldset" | Change the main HTML element wrapper for Fields and Groups |
1717

1818

1919

fields/field_properties.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
| multi | `false` | `Boolean` | if `true`, it will visible only if `multiple` is `true` in component attributes |
1616
| default | _none_ | any | Default value of the field \(use when create a new model\) |
1717
| hint | _none_ | `String` | show this hint below the field |
18-
| inputName | _none_ | `String` | set `name` attribute to `input` field. You can use it to generate normal HTML Forms and submit the field values to server-side. [Example](https://github.com/icebob/vue-form-generator/tree/master/examples/post-form) |
18+
| inputName | _none_ | `String` | set `name` attribute to `input` field. You can use it to generate normal HTML Forms and submit the field values to server-side. [Example](https://github.com/vue-generators/vue-form-generator/tree/master/examples/post-form) |
1919
| help | _none_ | `String` | show this help if mouse hover the question icon before the caption of field. _You can use HTML elements too._ |
2020
| validator | _none_ | `Function` or `Array` | Validator for value. It can be an array of functions too. |
2121
| styleClasses | _none_ | `String` or `Array` | custom css style classes. It will be appended to the `.from-group` |

fields/pikaday.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS
44

55
> Please note, this field depend on the following library:
66
- [Pikaday](https://github.com/dbushell/Pikaday)
7-
- [Moment.js](http://momentjs.com/) (see [issue #59](https://github.com/icebob/vue-form-generator/issues/59))
7+
- [Moment.js](http://momentjs.com/) (see [issue #59](https://github.com/vue-generators/vue-form-generator/issues/59))
88

99
## Special properties of field
1010

fields/text.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Property | Default | Accepted values | Description
5151
pattern: "^\\+[0-9]{2}-[237]0-[0-9]{3}-[0-9]{4}$",
5252
placeholder: "User's phone number",
5353
hint: "Format: +36-(20|30|70)-000-0000",
54-
help: "You can use any <b>formatted</b> texts. Or place a <a target='_blank' href='https://github.com/icebob/vue-form-generator'>link</a> to another site."
54+
help: "You can use any <b>formatted</b> texts. Or place a <a target='_blank' href='https://github.com/vue-generators/vue-form-generator'>link</a> to another site."
5555
validator: validators.regexp
5656
}
5757
```

groups.md

+6
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,10 @@ would produce (simplified) HTML output something like this:
3939
<label>Age</label>
4040
<input type="number" />
4141
</fieldset>
42+
```
43+
44+
You can change the default `fieldset` tag by passing the `tag` property to the `<vue-form-genator />` component in your markup.
45+
46+
```html
47+
<vue-form-generator tag="div" :model="model" :schema="schema" :options="options"></vue-form-generator>
4248
```

installation.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ $ npm install vue-form-generator
1010

1111
### Manual
1212

13-
Download zip package and unpack and add the `vfg.css` and `vfg.js` file to your project from dist folder.
13+
Download zip package, unpack and add the `vfg.css` and `vfg.js` file to your project from `/dist` folder.
1414

1515
```
16-
https://github.com/icebob/vue-form-generator/archive/master.zip
16+
https://github.com/vue-generators/vue-form-generator/releases/latest
1717
```
1818

1919
### Core vs Full version
2020

21-
VueFormGenerator come in two version : core and full.
22-
Core is a more minimal version with only half the fields.
21+
VueFormGenerator comes in two versions: core and full.
22+
Core is a minimal version with only half the fields.
2323
Full is core + other fields.
2424

25-
* Full bundle: 75 kB (gzipped: 19 kB)
26-
* Core bundle: 39 kB (gzipped: 11 kB)
25+
* Full bundle: 169 kB (gzipped: 50 kB)
26+
* Core bundle: 143 kB (gzipped: 45 kB)
2727

28-
If you don't know what to choose, don't worry, the full is the default version.
29-
If you want the slim down version, here is the changes:
28+
If you don't know what to choose, don't worry, full is the default version.
29+
If you want the slimmed down version, here are the changes:
3030

3131
```js
3232
// the "core" way
@@ -38,10 +38,10 @@ If you want the slim down version, here is the changes:
3838

3939
### Dependencies
4040

41-
VueFormGenerator use [fecha](https://github.com/taylorhakes/fecha) and [lodash](https://lodash.com/) internally.
41+
VueFormGenerator uses [fecha](https://github.com/taylorhakes/fecha) and [lodash](https://lodash.com/) internally.
4242

43-
While core fields don't need external dependencies, optional fields may need other libraries.
44-
These dependency fall in two camp: jQuery or Vanilla. You can find almost the same functionality in both flavor.
43+
While core fields don't need external dependencies, optional fields in the full package may need additional libraries.
44+
These dependencies fall into two camps: jQuery or Vanilla. You can find almost the same functionality in both flavors.
4545
That way, it's your choice to depend on jQuery or not.
4646

4747
| Field type | jQuery | Vanilla |

0 commit comments

Comments
 (0)