如何自定义Grails字段插件 [英] How to customize grails field plugin

查看:79
本文介绍了如何自定义Grails字段插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何自定义字段插件的模板?如何将引导程序类应用于它?
在哪里可以获取f:field的默认模板(例如)以对其进行自定义? 谢谢

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

推荐答案

您可以查看grails字段插件的文档,我认为非常清楚

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

在简历中,您必须创建gsp文件模板,对于不同的字段,可以通过各种选项(例如属性类型,属性名称,控制器,操作等)来完成.在这些模板文件中,您可以应用引导程序类别您要使用.

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.

这篇关于如何自定义Grails字段插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆