22 lines
943 B
PHP
22 lines
943 B
PHP
<div class="xe-form-group">
|
|
<section class="xeuio-medialibrary xeuio-medialibrary--image __xeuio-medialibrary-image" id="__xeuio-{{ $seq }}" data-uio-seq="{{ $seq }}">
|
|
<ul class="xeuio-ml__preview">
|
|
<li class="xeuio-ml__add-item"><button type="button" class="xeuio-ml__button xeuio-ml__add"><i class="xi-plus"></i> 추가</button></li>
|
|
</ul>
|
|
</section>
|
|
</div>
|
|
|
|
<script>
|
|
$(function () {
|
|
var $element = $('#__xeuio-{{ $seq }}')
|
|
var options = {
|
|
valueTarget: 'file_id',
|
|
name: '{{ array_get($args, 'name', 'image[]') }}', // field name
|
|
limit: '{{ array_get($args, 'limit', 0) }}',
|
|
@if(array_get($args, 'files')) files: {!! json_encode(array_get($args, 'files', [])) !!}, @endif
|
|
@if(array_get($args, 'field')) field: '{{ array_get($args, 'field') }}', @endif
|
|
}
|
|
$element.uioMedialibraryImage(options)
|
|
})
|
|
</script>
|