-
Notifications
You must be signed in to change notification settings - Fork 533
Adding custom fields #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is an example for custom field: https://jsfiddle.net/0mg1v81e/251/ You need to register your field as a global component: Vue.component("field-myinput", {
template: '<input type="text" v-model="value" style="width: 100%; border: 2px solid red" />',
mixins: [ VueFormGenerator.abstractField ]
}); And in the schema use the field name without {
type: "myinput",
label: "My input field",
model: "msg"
} |
Thanks man, it works for me. |
Wondering why the model value is not getting updated in the simple color picker? When I change the value directly from input it works but not when picking a color from color picker. Example: https://jsfiddle.net/reardestani/0mg1v81e/254/ Screenshot: http://take.ms/yJIyT Thanks in advance, |
It seems bootstrap-colorpicker doesn't trigger the |
Thanks, cool, I also took another approach and triggered
|
Hi,
Is it possible to add new custom fields without using webpack, vue-loader, as far as I see I need to do it in a separate file then load it in main app but I am just loading vue and this package via script in my simple app.
For example, how is it possible to do it in the official example?
Thanks in advance,
The text was updated successfully, but these errors were encountered: