Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- return [
- 'settings' => [],
- 'templates' => [
- 'Table' => [
- 'type' => 'table',
- 'placeholder' => 'Заголовок таблицы',
- 'value' => true,
- 'items' => [
- 'thead' => [
- 'type' => 'table:head',
- 'items' => [
- 'row' => [
- 'type' => 'table:row',
- 'items' => [
- [
- 'type' => 'table:th',
- 'items' => [
- [
- 'type' => 'id',
- 'value' => 'id'
- ]
- ],
- 'tpl' => '@CODE:<th>[+mf.items+]</th>'
- ],
- [
- 'type' => 'table:th',
- 'items' => [
- [
- 'type' => 'text',
- 'value' => 'Title'
- ]
- ],
- 'tpl' => '@CODE:<th>[+mf.items+]</th>'
- ],
- [
- 'type' => 'table:th',
- 'items' => [
- [
- 'type' => 'text',
- 'value' => 'Text'
- ]
- ],
- 'tpl' => '@CODE:<th>[+mf.items+]</th>'
- ],
- [
- 'type' => 'table:th',
- 'items' => [
- [
- 'type' => 'text',
- 'value' => 'Date'
- ]
- ],
- 'tpl' => '@CODE:<th>[+mf.items+]</th>'
- ],
- [
- 'type' => 'table:th',
- 'title' => 'Row Thumbs',
- 'items' => [
- [
- 'type' => 'text',
- 'tpl' => '@CODE: [+value+]',
- ],
- ],
- 'tpl' => '@CODE:<th>[+mf.items+]</th>'
- ]
- ],
- 'tpl' => '@CODE:<tr>[+mf.items+]</tr>'
- ]
- ],
- 'tpl' => '@CODE:<thead class="thead-dark">[+mf.items+]</thead>'
- // 'tpl' => ' '
- ],
- 'tbody' => [
- 'type' => 'table:body',
- 'items' => [
- 'row' => [
- 'type' => 'table:row',
- 'items' => [
- [
- 'type' => 'table:td',
- 'items' => [
- [
- 'type' => 'id'
- ]
- ],
- 'tpl' => '@CODE:<td>[+mf.items+]</td>'
- ],
- [
- 'type' => 'table:td',
- 'items' => [
- [
- 'type' => 'text'
- ]
- ],
- 'tpl' => '@CODE:<td>[+mf.items+]</td>'
- ],
- [
- 'type' => 'table:td',
- 'items' => [
- [
- 'type' => 'text'
- ]
- ],
- 'tpl' => '@CODE:<td>[+mf.items+]</td>'
- ],
- [
- 'type' => 'table:td',
- 'items' => [
- [
- 'type' => 'date'
- ]
- ],
- 'tpl' => '@CODE:<td>[+mf.items+]</td>'
- ],
- [
- 'type' => 'table:td',
- 'items' => [
- [
- 'type' => 'text',
- 'tpl' => '@CODE:<p>[+value+]</p>'
- ],
- ],
- 'tpl' => '@CODE:<td>[+mf.items+]</td>'
- ]
- ],
- 'tpl' => '@CODE:<tr>[+mf.items+]</tr>'
- ]
- ],
- 'tpl' => '@CODE:<tbody>[+mf.items+]</tbody>'
- ]
- ],
- 'tpl' => '@CODE: <p>--> [+value+] <--</p><table class="table table-sm table-hover table-bordered">[+mf.items+]</table>'
- ],
- ]
- ];
Advertisement
Add Comment
Please, Sign In to add comment