<?php // $file = /home/autoabzarco1/public_html/plugins/system/djc2yootheme/modules/builder-djcatalog2-source/elements/select/element.json

return [
  'name' => 'djc2filters-select', 
  'title' => 'Select input', 
  'group' => 'DJ-Catalog2 Filters', 
  'icon' => $filter->apply('url', 'images/icon.svg', $file), 
  'iconSmall' => $filter->apply('url', 'images/iconSmall.svg', $file), 
  'element' => true, 
  'width' => 500, 
  'templates' => [
    'render' => $filter->apply('path', './templates/template.php', $file), 
    'content' => $filter->apply('path', './templates/content.php', $file)
  ], 
  'placeholder' => [
    'props' => [
      'content' => 'DJ-Catalog2 Filters category select'
    ]
  ], 
  'fields' => [
    'show_label' => [
      'label' => 'Show label', 
      'description' => 'Show or hide field label', 
      'text' => 'Show label', 
      'type' => 'checkbox'
    ], 
    'required' => [
      'label' => 'Required', 
      'text' => 'Required', 
      'type' => 'checkbox'
    ], 
    'label' => [
      'label' => 'Label', 
      'description' => 'Enter field label', 
      'attrs' => [
        'placeholder' => 'Label'
      ], 
      'enable' => 'show_label'
    ], 
    'field' => [
      'label' => 'Mapped field', 
      'type' => 'DJC2ExtraFields', 
      'field' => 'select'
    ], 
    'class' => $config->get('builder.cls'), 
    'attributes' => $config->get('builder.attrs'), 
    'name' => $config->get('builder.name'), 
    'id' => $config->get('builder.id'), 
    'status' => $config->get('builder.status'), 
    'css' => [
      'label' => 'CSS', 
      'description' => 'Enter your own custom CSS. The following selectors will be prefixed automatically for this element: <code>.el-element</code>, <code>.el-content</code>', 
      'type' => 'editor', 
      'editor' => 'code', 
      'mode' => 'css', 
      'attrs' => [
        'debounce' => 500
      ]
    ], 
    'submit' => [
      'label' => 'Submit', 
      'type' => 'checkbox', 
      'text' => 'Send form automatically'
    ]
  ], 
  'fieldset' => [
    'default' => [
      'type' => 'tabs', 
      'fields' => [[
          'title' => 'Content', 
          'fields' => ['show_label', 'label', 'field']
        ], [
          'title' => 'Settings', 
          'fields' => [[
              'label' => 'Preferences', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => ['submit']
            ]]
        ], [
          'title' => 'Advanced', 
          'fields' => ['access', 'attributes', 'css', 'id', 'name', 'class']
        ]]
    ]
  ]
];
