grails - grails 中的 Twitter Bootstrap 事件导航栏

标签 grails twitter-bootstrap

我很难让“事件”类停留在不同的页面上。我通过布局在每个页面上加载了导航栏,这可能是问题吗?

最佳答案

我只是在我的布局 gsp 中有这个来创建导航栏,它工作得很好。我只有 Controller 级别的导航栏中的项目,而不是单个操作。

<li ${controllerName.equals('schedule') ? 'class="active"' : ''}>Schedule</li>

对于 Grails 生成的默认 Controller ,可以使用
<li ${controllerName == null ? 'class="active"' : ''}>Home</li>

关于grails - grails 中的 Twitter Bootstrap 事件导航栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12484317/

相关文章:

grails - 更改GGTS中的grails链接资源路径

grails - 使用Grails组合安全访问约束

grails - Groovy/Grails-如何检查Domain类中的关系?

Grails 服务未在集成测试中 Autowiring

url - grails测试网址参数

html - Bootstrap 的叠加问题

twitter-bootstrap - 具有居中内容的 Bootstrap 3 流体容器

javascript - 图像轮播,每张图像都有自己的可点击画廊

scroll - 在 Twitter Bootstrap 的 ScrollSpy 中,我究竟可以在哪里放置 data-spy ="scroll"?

html - Bootstrap 4 Button 到正确的问题