Tagged: 

Viewing 2 reply threads
  • Author
    Posts
    • #4302
      pionect
      Member

      I’d like to use an optgroup in a select.
      But I don’t see it mentioned in the documentation nor in the codebase itself.

      Could this be added to Piklist?

    • #4303
      Steve
      Keymaster

      @pionect– We implemented in the next beta, which will hopefully be released this week.

      Format will be:

      ,'choices' => array(
        'Group 1' => array(
          'first' => __('First Choice', 'piklist-demo')
          ,'second' => __('Second Choice', 'piklist-demo')
          ,'third' => __('Third Choice', 'piklist-demo')
        )
        ,'Group 2' => array(
          'first' => __('First Choice', 'piklist-demo')
          ,'second' => __('Second Choice', 'piklist-demo')
          ,'third' => __('Third Choice', 'piklist-demo')
        )
      )
      
    • #4304
      pionect
      Member
      This reply has been marked as private.
Viewing 2 reply threads
  • You must be logged in to reply to this topic.