Search code examples
grails

How to customize grails field plugin


How can I customize the template of my field plugin? how to apply bootstrap classes to it?
Where can I get the default template of a f:field (for example) to customize it ? Thank you


Solution

  • You can check documentation of grails field plugin, I think is very clear Grails Field Plugin Custimization Page

    In resume, you have to create gsp file templates, for the diferent fields, it can be done by varios options for example property type, propery name, controller, action, etc. In those template files you can apply the bootstrap clases you want to use.