@@ -53,12 +53,12 @@ Description:
53
53
</ul >
54
54
</div >
55
55
56
- <!-- < div class="AttributeContainer" v-for="element in this.componentMap[this.activeComponent].htmlList"
56
+ <div class =" AttributeContainer" v-for =" element in this.componentMap[this.activeComponent].htmlList"
57
57
:key =" element.id + Date.now()" >
58
58
<ul v-for =" element1 in element.children" :key =" element1.id + Date.now()" >
59
59
<li v-if =" element1.id === this.activeHTML" >You've binded to - {{ element1.binding }}</li >
60
60
</ul >
61
- </div> -->
61
+ </div >
62
62
63
63
<div class =" formBox" >
64
64
<q-form autofocus v-on:submit.prevent =" submitClass" >
@@ -68,15 +68,15 @@ Description:
68
68
<q-btn id =" comp-btn" class =" sidebar-btn" color =" secondary" label =" Submit Attribute"
69
69
:disable =" classText.length > 0 ? false : true" @click =" submitClass(classText, this.activeHTML)" />
70
70
</q-form >
71
- <!-- < q-form autofocus v-on:submit.prevent="addBinding">
71
+ <q-form autofocus v-on:submit.prevent =" addBinding" >
72
72
<p class =" title" >Add Binding:</p >
73
73
74
74
<q-input label =" Add two way binding here" filled dark autofocus true hide-bottom-space v-model =" bindingText"
75
75
@keyup.enter =" addBinding" ></q-input >
76
76
<q-btn id =" comp-btn" class =" sidebar-btn" color =" secondary" label =" Add Binding"
77
77
:disable =" bindingText.length > 0 ? false : true" @click =" addBinding(bindingText, this.activeHTML)" >
78
78
</q-btn >
79
- </q-form> -->
79
+ </q-form >
80
80
<q-btn label =" Close" @click =" this.openAttributeModal" />
81
81
</div >
82
82
</div >
@@ -201,17 +201,17 @@ export default {
201
201
this .addActiveComponentClass (payload);
202
202
this .classText = ' ' ;
203
203
},
204
- // addBinding(input, idNum) {
205
- // if (input === '') {
206
- // return;
207
- // }
208
- // const payload = {
209
- // binding: input,
210
- // id: idNum
211
- // }
212
- // this.addBindingText(payload);
213
- // this.bindingText = '';
214
- // },
204
+ addBinding (input , idNum ) {
205
+ if (input === ' ' ) {
206
+ return ;
207
+ }
208
+ const payload = {
209
+ binding: input,
210
+ id: idNum
211
+ }
212
+ this .addBindingText (payload);
213
+ this .bindingText = ' ' ;
214
+ },
215
215
},
216
216
watch: {
217
217
attributeModalOpen () {
0 commit comments