Skip to content

Commit b035eec

Browse files
committed
rename config/componentConfig to vue_props/props for more descriptive naming
1 parent cff732f commit b035eec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+269
-264
lines changed

docs/api/100-components/form_checkbox.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ MatestackUiCore.Vue.component('my-form-checkbox', {
172172
},
173173
mounted: function(){
174174
// use/initialize any third party library here
175-
// you can access the default initial value via this.componentConfig["init_value"]
175+
// you can access the default initial value via this.props["init_value"]
176176
// if you need to, you can access your own component config data which added
177177
// within the prepare method of the corresponding Ruby class
178-
// this.componentConfig["foo"] would be "bar" in this case
178+
// this.props["foo"] would be "bar" in this case
179179
}
180180
});
181181
```

docs/api/100-components/form_input.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ MatestackUiCore.Vue.component('my-form-input', {
174174
},
175175
mounted: function(){
176176
// use/initialize any third party library here
177-
// you can access the default initial value via this.componentConfig["init_value"]
177+
// you can access the default initial value via this.props["init_value"]
178178
// if you need to, you can access your own component config data which added
179179
// within the prepare method of the corresponding Ruby class
180-
// this.componentConfig["foo"] would be "bar" in this case
180+
// this.props["foo"] would be "bar" in this case
181181
}
182182
});
183183
```
@@ -195,7 +195,7 @@ MatestackUiCore.Vue.component('my-form-input', {
195195
mounted: function(){
196196
// flatpickr needs to be required according to your JS setup
197197
flatpickr(this.$el.querySelector('.flatpickr'), {
198-
defaultDate: this.componentConfig["init_value"],
198+
defaultDate: this.props["init_value"],
199199
enableTime: true
200200
});
201201
}

docs/api/100-components/form_radio.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ MatestackUiCore.Vue.component('my-form-radio', {
190190
},
191191
mounted: function(){
192192
// use/initialize any third party library here
193-
// you can access the default initial value via this.componentConfig["init_value"]
193+
// you can access the default initial value via this.props["init_value"]
194194
// if you need to, you can access your own component config data which added
195195
// within the prepare method of the corresponding Ruby class
196-
// this.componentConfig["foo"] would be "bar" in this case
196+
// this.props["foo"] would be "bar" in this case
197197
}
198198
});
199199
```

docs/api/100-components/form_select.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ MatestackUiCore.Vue.component('my-form-select', {
211211
},
212212
mounted: function(){
213213
// use/initialize any third party library here
214-
// you can access the default initial value via this.componentConfig["init_value"]
214+
// you can access the default initial value via this.props["init_value"]
215215
// if you need to, you can access your own component config data which added
216216
// within the prepare method of the corresponding Ruby class
217-
// this.componentConfig["foo"] would be "bar" in this case
217+
// this.props["foo"] would be "bar" in this case
218218
}
219219
});
220220
```

docs/api/100-components/form_textarea.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ MatestackUiCore.Vue.component('my-form-textarea', {
9494
},
9595
mounted: function(){
9696
// use/initialize any third party library here
97-
// you can access the default initial value via this.componentConfig["init_value"]
97+
// you can access the default initial value via this.props["init_value"]
9898
// if you need to, you can access your own component config data which added
9999
// within the prepare method of the corresponding Ruby class
100-
// this.componentConfig["foo"] would be "bar" in this case
100+
// this.props["foo"] would be "bar" in this case
101101
}
102102
});
103103
```

docs/docs/api/100-components/form_checkbox.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ MatestackUiCore.Vue.component('my-form-checkbox', {
172172
},
173173
mounted: function(){
174174
// use/initialize any third party library here
175-
// you can access the default initial value via this.componentConfig["init_value"]
175+
// you can access the default initial value via this.props["init_value"]
176176
// if you need to, you can access your own component config data which added
177177
// within the prepare method of the corresponding Ruby class
178-
// this.componentConfig["foo"] would be "bar" in this case
178+
// this.props["foo"] would be "bar" in this case
179179
}
180180
});
181181
```

docs/docs/api/100-components/form_input.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ MatestackUiCore.Vue.component('my-form-input', {
172172
},
173173
mounted: function(){
174174
// use/initialize any third party library here
175-
// you can access the default initial value via this.componentConfig["init_value"]
175+
// you can access the default initial value via this.props["init_value"]
176176
// if you need to, you can access your own component config data which added
177177
// within the prepare method of the corresponding Ruby class
178-
// this.componentConfig["foo"] would be "bar" in this case
178+
// this.props["foo"] would be "bar" in this case
179179
}
180180
});
181181
```
@@ -193,7 +193,7 @@ MatestackUiCore.Vue.component('my-form-input', {
193193
mounted: function(){
194194
// flatpickr needs to be required according to your JS setup
195195
flatpickr(this.$el.querySelector('.flatpickr'), {
196-
defaultDate: this.componentConfig["init_value"],
196+
defaultDate: this.props["init_value"],
197197
enableTime: true
198198
});
199199
}

docs/docs/api/100-components/form_radio.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ MatestackUiCore.Vue.component('my-form-radio', {
190190
},
191191
mounted: function(){
192192
// use/initialize any third party library here
193-
// you can access the default initial value via this.componentConfig["init_value"]
193+
// you can access the default initial value via this.props["init_value"]
194194
// if you need to, you can access your own component config data which added
195195
// within the prepare method of the corresponding Ruby class
196-
// this.componentConfig["foo"] would be "bar" in this case
196+
// this.props["foo"] would be "bar" in this case
197197
}
198198
});
199199
```

docs/docs/api/100-components/form_select.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ MatestackUiCore.Vue.component('my-form-select', {
211211
},
212212
mounted: function(){
213213
// use/initialize any third party library here
214-
// you can access the default initial value via this.componentConfig["init_value"]
214+
// you can access the default initial value via this.props["init_value"]
215215
// if you need to, you can access your own component config data which added
216216
// within the prepare method of the corresponding Ruby class
217-
// this.componentConfig["foo"] would be "bar" in this case
217+
// this.props["foo"] would be "bar" in this case
218218
}
219219
});
220220
```

docs/docs/api/100-components/form_textarea.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ MatestackUiCore.Vue.component('my-form-textarea', {
9494
},
9595
mounted: function(){
9696
// use/initialize any third party library here
97-
// you can access the default initial value via this.componentConfig["init_value"]
97+
// you can access the default initial value via this.props["init_value"]
9898
// if you need to, you can access your own component config data which added
9999
// within the prepare method of the corresponding Ruby class
100-
// this.componentConfig["foo"] would be "bar" in this case
100+
// this.props["foo"] would be "bar" in this case
101101
}
102102
});
103103
```

0 commit comments

Comments
 (0)