File tree Expand file tree Collapse file tree 1 file changed +35
-2
lines changed
Expand file tree Collapse file tree 1 file changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,51 @@ or if you can just include the script:
1111```
1212
1313##Usage
14- ```
14+ ``` js
1515import VueFormly from ' vue-formly' ;
1616import VueFormlyBootstrap from ' vue-formly-bootstrap' ;
1717Vue .use (VueFormly);
1818Vue .use (VueFormlyBootstrap);
19+
20+ let vm = new Vue ({
21+ el: ' #app' ,
22+ data: {
23+ form: {
24+ name: {
25+ type: ' input' ,
26+ label: ' Your name'
27+ },
28+ sex: {
29+ type: ' select' ,
30+ label: ' Sex' ,
31+ options: [' Male' , ' Female' ]
32+ },
33+ comments: {
34+ type: ' textarea' ,
35+ label: ' Comments'
36+ }
37+ }
38+ },
39+ methods: {
40+ doSomething : function (){}
41+ }
42+ });
43+ ```
44+ ``` html
45+ <div id =" el" >
46+ <formly-form :form =" form" @submit =" doSomething" >
47+ <button >Submit</button >
48+ </formly-form >
49+ </div >
1950```
2051If you include the script it will be installed for you.
2152
2253Note that this is still a work in progress so some fields are under construction. See the To Do section for what's on the watchlist.
2354
2455##Options
25- Coming soon...
56+
57+ ###Global options
58+ There are some options that
2659
2760##To Do
2861* [x] Input
You can’t perform that action at this time.
0 commit comments