Grails
  1. Grails
  2. GRAILS-3951

Allow put custom properties in option tag generated by <g:select/>

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.4
    • Fix Version/s: None
    • Component/s: TagLib
    • Labels:
      None

      Description

      I think is interesting, allow to put custom properties in option tags, to generate a code like:

      <option value="v" type="string"/>
      <option value="v" type="numeric"/>
      <option value="v" class="numeric"/>
      

      Or any other custom property.

        Activity

        Hide
        Danilo Tuler added a comment - - edited

        The taglib could support a property called 'optionClass' that can be a closure.
        This would be very usefull in situations like a chained select, like this one: http://www.appelsiini.net/2010/jquery-chained-selects

        Show
        Danilo Tuler added a comment - - edited The taglib could support a property called 'optionClass' that can be a closure. This would be very usefull in situations like a chained select, like this one: http://www.appelsiini.net/2010/jquery-chained-selects

          People

          • Assignee:
            Unassigned
            Reporter:
            Maxwell Chiareli
          • Votes:
            9 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Last Reviewed:

              Development