angular-material icon indicating copy to clipboard operation
angular-material copied to clipboard

Material Form Builder

Open Asifislam110 opened this issue 5 years ago • 11 comments

Would it be possible to use https://github.com/formio/angular-material-formio to create form builder? If yes could you please provide some example . I tried below code but throwing exception.

<form-builder [form]="{ components: [] }">

Got it from here https://github.com/formio/angular-formio/wiki/Form-Builder

Asifislam110 avatar Jan 13 '20 05:01 Asifislam110

It would require some work to build out the shims for the builder, but yes, it could be done.

Something like this may require either community support or sponsorship for the Form.io team to develop this capability.

travist avatar Jan 14 '20 14:01 travist

Hi @travist

Could you please provide me guidelines on how I can implement the Material form builder? Would it be something similar with the renderer or no?

Thanks, Dimitris

kalodim avatar Mar 04 '20 17:03 kalodim

I faced the same need. Could anyone help with implementation? Any advice is welome

ykcycer avatar Mar 19 '20 11:03 ykcycer

I faced the same need.

Arashatami avatar Apr 20 '20 05:04 Arashatami

I faced the same need.

hyhuu99 avatar Jul 03 '20 06:07 hyhuu99

is there any update on the form builder

Aghoghomena avatar Sep 22 '20 09:09 Aghoghomena

We do not have any current plans to build out this feature. It would be great if the community would assist in this endeavor.

travist avatar Sep 23 '20 20:09 travist

@travist Any suggestions on what the best approach would be to get started on this?

JRiggenbach avatar Dec 10 '20 21:12 JRiggenbach

@JRiggenbach if you are looking to contribute the resolution of this, then the best place to start is to first dive into this code to understand how this library overrides the view for the form renderer and then apply that same process to override the view rendering of the form builder (by overriding the render and attach methods). I would go into more detail, but honestly, this work will require you to first fully understand the mechanics of how this library creates a view layer on top of our renderer core to have a material renderer, and to describe that methodology would take a while to post in a comment.

travist avatar Dec 11 '20 21:12 travist

This worked for me I installed angular-formio and added it to imports in app.modules. Then included https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css in my index.html to enforce the styles.

The form-builder is now working as expected in my angular mat project

Mowzey123 avatar May 16 '21 17:05 Mowzey123

Did someone manage to implement form builder with material controls?. Or maybe some more details from you @travist?, how could this be achived based on actual code. It would be huge help for those who want to do that. Thanks :).

DamianSoltys avatar Jun 23 '22 08:06 DamianSoltys