File tree Expand file tree Collapse file tree 1 file changed +41
-5
lines changed
Expand file tree Collapse file tree 1 file changed +41
-5
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,10 @@ For example if we use version `3.6.0` of the webcomponent then using the below H
6262``` html
6363<html >
6464 <body >
65- <vuetify-json-forms id =" vuetify-json-forms" ></vuetify-json-forms >
65+ <vuetify-json-forms
66+ id =" vuetify-json-forms"
67+ dark =" false"
68+ ></vuetify-json-forms >
6669
6770 <script type =" text/javascript" >
6871 let data = {
@@ -102,15 +105,48 @@ For example if we use version `3.6.0` of the webcomponent then using the below H
102105 }
103106 };
104107
105- var form = document .getElementById (" vuetify-json-forms" );
106- form .setAttribute (" data" , JSON .stringify (data));
107- form .setAttribute (" schema" , JSON .stringify (schema));
108+ const vuetifyOptions = {
109+ defaults: {
110+ VField: {
111+ variant: " outlined" ,
112+ },
113+ VTextField: {
114+ variant: " outlined" ,
115+ },
116+ VCombobox: {
117+ variant: " outlined" ,
118+ },
119+ VSelect: {
120+ variant: " outlined" ,
121+ },
122+ VAutocomplete: {
123+ variant: " outlined" ,
124+ },
125+ VTextarea: {
126+ variant: " outlined" ,
127+ },
128+ VNumberInput: {
129+ variant: " outlined" ,
130+ inset: true ,
131+ },
132+ VDateInput: {
133+ variant: " outlined" ,
134+ },
135+ VCheckbox: { color: " primary" },
136+ },
137+ };
138+
139+ const form = document .getElementById (" vuetify-json-forms" );
140+ form .data = data;
141+ form .schema = schema;
142+ form .vuetifyOptions = vuetifyOptions;
143+
108144 form .addEventListener (" change" , onChange);
109145 </script >
110146
111147 <script
112148 type =" module"
113- src =" https://cdn.jsdelivr.net/npm/@chobantonov/jsonforms-vuetify-webcomponent@3.6 .0/dist/vuetify-json-forms.min.js"
149+ src =" https://cdn.jsdelivr.net/npm/@chobantonov/jsonforms-vuetify-webcomponent@3.7 .0/dist/vuetify-json-forms.min.js"
114150 ></script >
115151 </body >
116152</html >
You can’t perform that action at this time.
0 commit comments