admin管理员组文章数量:1402848
there,
I'm working with Jquery Form Builder (/) and I got to the task: add custom field to the form builder.
I want to do it without change the core of this jquery plugin. I already found that I can add it to the function "fieldRender", between other changes.
Doing this I would lose updates of this project, and this custom fields are too specific to offer to the project itself.
I'm already looking for some time and didn't find yet: does anyone knows if there is a way to add custom fields with a sort of extension strategy, so I could build custom fields without change the core code everytime?
Thanks,
there,
I'm working with Jquery Form Builder (https://formbuilder.online/) and I got to the task: add custom field to the form builder.
I want to do it without change the core of this jquery plugin. I already found that I can add it to the function "fieldRender", between other changes.
Doing this I would lose updates of this project, and this custom fields are too specific to offer to the project itself.
I'm already looking for some time and didn't find yet: does anyone knows if there is a way to add custom fields with a sort of extension strategy, so I could build custom fields without change the core code everytime?
Thanks,
Share Improve this question asked Nov 14, 2016 at 16:51 Sávio ResendeSávio Resende 312 silver badges5 bronze badges1 Answer
Reset to default 6Support for custom elements was officially added in v2.1 http://formbuilder.readthedocs.io/en/latest/formBuilder/options/templates/
You add 2 options to the editor. For example if you want a Star Rating input
var fields = [{
label: 'Star Rating',
attrs: {
type: 'starRating'
},
icon: '
本文标签:
javascriptHow to add custom field to Jquery Form BuilderStack Overflow
版权声明:本文标题:javascript - How to add custom field to Jquery Form Builder - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人,
转载请联系作者并注明出处:http://www.betaflare.com/web/1744357921a2602397.html,
本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论