Tabs in a group

Support MB Tabs Tabs in a group

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8850
    FEDFED
    Participant

    Hi! This is a little different than this question: https://support.metabox.io/topic/cloneable-group-with-tabs/

    I'd like to have tabs within an existing group. Is that possible? Non-working sudo-code example:

    
    array(
     'id' => 'panel',
     'type' => 'group',
     'hidden' => array('type', '!=', 'connect'),
     'tabs'      => array(
       'connect'    => array(
           'label' => 'Connect',
           'icon' => 'Tab icon'
         ),
       'social' => array(
           'label' => 'Social media',
           'icon' => 'Tab icon'
       ),
       'address'  => array(
           'label' => 'Address',
           'icon' => 'Tab icon'
        ),
      ),
     'fields' => array(
        array(
         'name' => 'Connect Panel',
         'id'   => 'description',
         'type' => 'custom_html',
         'std'  => 'explanation on how to use this',
        ),
        array(
          'id' => 'social',
          'type' => 'group',
          'tab'  => 'social',
            array(
             'name' => 'Facebook URL',
             'id'   => 'facebook',
             'type' => 'url',
             'desc' => 'Example: https://www.facebook.com/your-facebook-page',
            ),
          ),
        array(
          'id' => 'address',
          'type' => 'group',
          'tab'  => 'address',
    
          'fields' => array(
            array(
              'type' => 'heading',
              'name' => 'Address',
          ),
        ),
        array(
          'id' => 'general',
          'type' => 'group',
          'tab'  => 'connect',
          
          'fields' => array(
            array(
              'name' => 'Email',
              'id'   => 'email',
              'type' => 'email',
              'desc' => '[email protected]',
            ),
        ),
      )
    );
    
    #8851
    Anh TranAnh Tran
    Keymaster

    Hi,

    Unfortunately, tabs is not supported in groups yet 🙁

    #8874
    FEDFED
    Participant

    Ah, ok. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Tabs in a group’ is closed to new replies.