Skip to content

Commit

Permalink
datePicker selectClass needed for bootstrap 5 formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
codeconsole committed Jan 12, 2025
1 parent 0536858 commit c8a84fc
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ class FormTagLib implements ApplicationContextAware, InitializingBean, TagLibrar
* @attr disabled Makes the resulting inputs and selects to be disabled. Is treated as a Groovy Truth.
* @attr readonly Makes the resulting inputs and selects to be made read only. Is treated as a Groovy Truth.
* @attr locale The locale to use for display formatting. Defaults to the current request locale and then the system default locale if not specified.
* @attr selectClass css class added to each select tag
*/
Closure datePicker = { attrs ->
def out = out // let x = x ?
Expand Down Expand Up @@ -797,6 +798,9 @@ class FormTagLib implements ApplicationContextAware, InitializingBean, TagLibrar
if (attrs.readonly) {
out << ' readonly="readonly"'
}
if (attrs.selectClass) {
out << ' class="'+attrs.selectClass+'"'
}
out << '>'

if (noSelection) {
Expand All @@ -821,6 +825,9 @@ class FormTagLib implements ApplicationContextAware, InitializingBean, TagLibrar
if (attrs.readonly) {
out << ' readonly="readonly"'
}
if (attrs.selectClass) {
out << ' class="'+attrs.selectClass+'"'
}
out << '>'

if (noSelection) {
Expand All @@ -847,6 +854,9 @@ class FormTagLib implements ApplicationContextAware, InitializingBean, TagLibrar
if (attrs.readonly) {
out << ' readonly="readonly"'
}
if (attrs.selectClass) {
out << ' class="'+attrs.selectClass+'"'
}
out << '>'

if (noSelection) {
Expand All @@ -871,6 +881,9 @@ class FormTagLib implements ApplicationContextAware, InitializingBean, TagLibrar
if (attrs.readonly) {
out << ' readonly="readonly"'
}
if (attrs.selectClass) {
out << ' class="'+attrs.selectClass+'"'
}
out << '>'

if (noSelection) {
Expand Down Expand Up @@ -902,6 +915,9 @@ class FormTagLib implements ApplicationContextAware, InitializingBean, TagLibrar
if (attrs.readonly) {
out << 'readonly="readonly"'
}
if (attrs.selectClass) {
out << ' class="'+attrs.selectClass+'"'
}
out << '>'

if (noSelection) {
Expand Down

0 comments on commit c8a84fc

Please sign in to comment.