Reputation: 1263
Can anyone recommend a good taglib for bootstrap to grails? The taglib should consist of the basic components of bootstrap.
I have searched through GitHub and Grails plugins. And haven't succeeded to found a taglib with "standard" bootstrap components
Upvotes: 0
Views: 336
Reputation: 1263
I can see that Grails very 3.2.0M1 is based bootstrap which is almost the answer to my question.
Upvotes: 0
Reputation: 361
As @joshua-moore states, there isn't a specific BootStrap tag lib and it's maybe not the job of a tag lib in any case. That said, I am overriding existing tags that are used by scaffolding views to include the "form-control" class in the class attributes, which works for my purposes:
class BootstrapTagLib extends FormTagLib {
Closure field = { attrs ->
attrs = addFormControl(attrs)
super.field.call(attrs)
}
...
private Map addFormControl(Map attrs) {
addClass(attrs, "form-control")
}
}
Upvotes: 0
Reputation: 24776
Beyond the Twitter bootstrap plugin which fixes the pagination for <g:paginate>
, there isn't one.
Upvotes: 1