Nuxy
  • Nuxy
  • Installation
  • Adding Page Options
  • Adding Post Options
  • Adding Taxonomy Options
  • Adding Frontend Options
  • Getting Fields
  • Adding to admin bar
  • Tabs
    • General tab parameters
    • Add submenu
  • Field parameters
  • Registering field
  • Fields dependency
  • Fields group
  • Field types
    • General field parameters
    • 1. Text
    • 2. Number
    • 3. Textarea
    • 4. Checkbox
    • 5. Select
    • 6. Radio
    • 7. Color
    • 8. Image
    • 9. Editor
    • 10. Autocomplete
    • 11. Datepicker
    • 12. Datepicker range
    • 13. Time
    • 14. Sortable
    • 15. Sortable multi input
    • 16. Gallery
    • 17. Repeater
    • 18. Range slider
    • 19. Image Select
    • 20. Button group
    • 21. Icon picker
    • 22. Ace Editor
    • 23. Spacings
    • 24. Link color
    • 25. Multi checkbox
    • 26. Color Gradient
    • 27. Textarea with hints
    • 28. Typography
    • 29. Multiselect
    • 30. Notification Message
    • 31. Button List
    • 32. Group Title with Preview && Icon
  • Download Nuxy
Powered by GitBook
On this page

Fields group

Sometimes you need to show belonging to one group of settings

PreviousFields dependencyNextGeneral field parameters

Last updated 4 years ago

First three options visually grouped in one block.

Just add to start field:

'group' => 'started',

And in end of group:

'group' => 'ended',
'field_1' => array(
    'type' => 'text',
    'group' => 'started',
    'label' => esc_html__('Text field', 'my-domain'),
    'hint' => esc_html__('Hint field', 'my-domain'),
    'description' => esc_html__('Description of field', 'my-domain'),
    'submenu' => esc_html__('General fields', 'my-domain'),
    'placeholder' => esc_html__('Sample Config', 'my-domain'),
),
'field_1_2' => array(
    'type' => 'text',
    'label' => esc_html__('Text field', 'my-domain'),
    'description' => esc_html__('Long description with a lot of text to test of fields.', 'my-domain'),
    'submenu' => esc_html__('General fields', 'my-domain'),
    'placeholder' => esc_html__('Sample Config', 'my-domain'),
),
'field_2' => array(
    'type' => 'number',
    'label' => esc_html__('Number field', 'my-domain'),
    'step' => 20,
    'description' => esc_html__('Long description with a lot of text to test of fields.', 'my-domain'),
    'submenu' => esc_html__('General fields', 'my-domain'),
    'placeholder' => esc_html__('Sample Config', 'my-domain'),
    'group' => 'ended',
),