Skip to content

Instantly share code, notes, and snippets.

@0test
Created March 10, 2021 09:30
Show Gist options
  • Save 0test/354d19b97f54b80b027fe9f541429f72 to your computer and use it in GitHub Desktop.
Save 0test/354d19b97f54b80b027fe9f541429f72 to your computer and use it in GitHub Desktop.
tabs
<?php
return [
'settings' => [],
'templates' => [
'region_block' => [
'value' => true,
'type' => 'row',
'title' => 'Один таб',
'label' => 'Один таб',
'placeholder' => 'Имя таба',
'tpl' => '@CODE:
<div class="tabs_one_tab " data-id="[+mf.iteration+]">
<ul class="item_chars_list">
[+mf.items+]
</ul>
</div>
',
'items' => [
'one_region' => [
'value' => false,
'type' => 'row',
'hidden' => true,
'title' => 'Строка',
'label' => 'Строка',
'items.class' => '',
'tpl' => '@CODE:
<li><div>[+name+]</div> <div>[+val+]</div></li>
',
'items' => [
'name' => [
'type' => 'text',
'placeholder' => 'Название',
'class' => 'col-6 ',
],
'val' => [
'type' => 'text',
'placeholder' => 'Значение',
'class' => 'col-6 ',
]
]
]
]
],
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment