Igualando a rama dev/formateando

This commit is contained in:
imnavajas
2023-05-16 10:49:31 +02:00
parent ea0c714550
commit ec2835ad59
18 changed files with 294 additions and 892 deletions

View File

@ -4,7 +4,7 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/css/select2.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.1.1/dist/select2-bootstrap-5-theme.min.css" />
*/ ?>
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/select2/select2.css') ?>">
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/select2/select2.css') ?>"/>
<?= $this->endSection() ?>
<!-- Push additional js -->
@ -17,15 +17,19 @@
<?= $this->section('additionalInlineJs') ?>
<?php /*
$('.select2bs').select2({
theme: "bootstrap-5",
allowClear: false,
});
*/ ?>
'use strict';
const select2 = $('.select2');
$('.select2').select2({
});
// Select2
// --------------------------------------------------------------------
if (select2.length) {
select2.each(function () {
var $this = $(this);
$this.wrap('<div class="position-relative"></div>').select2({
placeholder: 'Select value',
dropdownParent: $this.parent()
});
});
}
<?= $this->endSection() ?>