formio / angular

JSON powered forms for Angular
https://formio.github.io/angular-demo
MIT License
613 stars 461 forks source link

class="form-control" #1033

Closed e404r closed 4 months ago

e404r commented 5 months ago

class="form-control". how to change default

travist commented 4 months ago

You will need to add a new template to the renderer using the Formio.use(...) method like so.

import { Formio } from '@angular/formio';
Formio.use({
  template: {...}
});

The contents of the template will be your custom template that overrides the classes of the rendered form. Please see https://help.form.io/developers/form-development/form-templates for examples on creating new templates.