// 'style' => 'width: 70px;',
]
],
+ [
+ 'name' => 'imageFiles',
+ 'title' => 'Фотографии: jpg и png',
+ 'type' => FileInput::className(),
+ 'options' => [
+ 'options' => [
+ 'multiple' => true,
+ 'accept' => 'image/*',
+ 'name' => 'image_name',
+ 'capture' => '',
+ 'class' => 'file'
+ ],
+ 'pluginOptions' => [
+// 'previewFileType' => ['jpg','png'],
+// 'allowedFileExtensions'=>['jpg','png'],
+ 'showPreview' => false,
+ 'showCaption' => true,
+ 'showRemove' => true,
+ 'showUpload' => false,
+ //'uploadClass' => 'hide',
+// 'initialPreview'=> $initalImages,
+ 'overwriteInitial' => true,
+
+// 'initialPreviewAsData'=>true,
+ //initialPreviewAsData: false,
+// 'bsColCssPrefixes'=>3,
+ // 'uploadUrl' => Url::to(['/site/image-manager-upload']),
+ 'browseIcon' => '+',
+ 'cancelIcon' => 'x',
+ 'removeIcon' => '-',
+ 'buttonLabelClass' => 'hidden',
+// 'browseIcon' => '<i class="glyphicon glyphicon-picture 12345"></i>',
+ 'fileActionSettings' => ['showUpload' => false],
+ 'maxFileCount' => 10,
+ 'multiple' => true
+ ],
+ 'model' => $multipleUploadForm,
+ ]
+ ],
[
'name' => 'videoFiles',
'title' => 'Видео: mp4, mov, avi',
return $file ? $file->url : null;
},
- 'columnOptions' => function($rowModel, $index, $context) {
+ 'columnOptions' => function ($rowModel, $index, $context) {
$file = null;
$initialPreview = [];
$initialPreviewConfig = [];