for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Flynt\Components\ListIcons;
use Flynt\Api;
Api::registerFields('ListIcons', [
'layout' => [
'name' => 'ListIcons',
'label' => 'List: Icons',
'sub_fields' => [
[
'label' => 'General',
'name' => 'generalTab',
'type' => 'tab',
'placement' => 'top',
'endpoint' => 0
],
'label' => 'Title',
'name' => 'preContentHtml',
'type' => 'wysiwyg',
'tabs' => 'visual,text',
'media_upload' => 0,
'delay' => 1
'label' => 'Items',
'name' => 'items',
'type' => 'repeater',
'min' => 1,
'layout' => 'row',
'button_label' => 'Add Item',
Api::loadFields('FieldVariables', 'icon'),
'label' => 'Text content',
'name' => 'textContentHtml',
'label' => 'Link',
'name' => 'link',
'type' => 'link',
]
'label' => 'Options',
'name' => 'optionsTab',
'label' => '',
'name' => 'options',
'type' => 'group',
Api::loadFields('FieldVariables', 'theme')
]);