Files
wticreatorstudio/Modules/LaraBuilder/Fields/tabs.php
T

73 lines
2.5 KiB
PHP

<?php
return [
'section' => [
'id' => 'ob_tabs',
'label' => __('Tab Separator'),
'tabs' => true,
'icon' => '',
],
'fields' => [
[
'tab_id' => 'text',
'tab_title' => __('Textboxes'),
'id' => 'textbox',
'type' => 'text',
'value' => '',
'class' => '',
'label_title' => __('Textbox field'),
'label_desc' => __('This is the label description you can use here'),
'field_desc' => __('This is the field description you can use here'),
'placeholder' => __('Textbox placeholder'),
'hint' => [
'content' => __('Hint content about this field!'),
],
],
[
'tab_id' => 'text',
'tab_title' => __('Textboxes'),
'id' => 'textarea',
'type' => 'textarea',
'class' => '',
'value' => '',
'label_title' => __('Textarea field'),
'label_desc' => __('This is the label description you can use here'),
'field_desc' => __('This is the field description you can use here'),
'hint' => [
'content' => __('Hint content about this field!'),
],
],
[
'tab_id' => 'switch',
'tab_title' => __('Switches'),
'id' => 'switch',
'type' => 'switch',
'class' => '',
'label_title' => __('Single switch field'),
'label_desc' => __('This is the label description you can use here'),
'field_title' => __('Single switch title'),
'field_desc' => __('This is the field description you can use here'),
'value' => '1',
],
[ // multiple switch fields
'tab_id' => 'switch',
'tab_title' => __('Switches'),
'id' => 'multiswitch',
'type' => 'switch',
'class' => '',
'label_title' => __('Multiple switch field'),
'label_desc' => __('This is the label description you can use here'),
'field_desc' => __('This is the field description you can use here'),
'options' => [
'1' => __('Switch opt 1'),
'2' => __('Switch opt 2'),
'3' => __('Switch opt 3'),
'4' => __('Switch opt 4'),
'5' => __('Switch opt 5'),
'6' => __('Switch opt 6'),
],
'default' => [2, 6, 4],
],
],
];