Skip to content

Instantly share code, notes, and snippets.

@dzhuryn
Created July 5, 2021 09:48
Show Gist options
  • Save dzhuryn/59e9b846c5b7c4436b45f995582a83d6 to your computer and use it in GitHub Desktop.
Save dzhuryn/59e9b846c5b7c4436b45f995582a83d6 to your computer and use it in GitHub Desktop.
multi_fields
//картинка и превю маленькое
'thumb' => [
'type' => 'thumb',
'image' => 'image',
'actions' => ['del', 'edit'],
'attr' => 'style="width:60px; float:left;"'
],
'image' => [
'type' => 'image',
'thumb' => 'thumb',
'title'=>'Image',
'attr'=>'style="max-width: calc(50% - 60px);";',
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment