Using Select2 for dropdown

This commit is contained in:
Ibnu Maksum
2023-08-16 09:05:59 +07:00
parent 3fe9111824
commit b315e3dba1
25 changed files with 61 additions and 47 deletions

View File

@ -14,10 +14,18 @@
<script src="ui/ui/scripts/plugins/select2.min.js"></script>
<script src="ui/ui/scripts/custom.js"></script>
<script src="ui/ui/scripts/select2.min.js"></script>
{if isset($xfooter)}
{$xfooter}
{/if}
{literal}
<script>
$(document).ready(function() {
$('.select2').select2({theme: "bootstrap"});
});
</script>
{/literal}
</body>

View File

@ -15,7 +15,8 @@
<link rel="stylesheet" href="ui/ui/styles/adminlte.min.css">
<link rel="stylesheet" href="ui/ui/styles/skin-blue.min.css">
<link rel="stylesheet" href="ui/ui/styles/select2.min.css" />
<link rel="stylesheet" href="ui/ui/styles/select2-bootstrap.min.css" />
<style>
::-moz-selection {
/* Code for Firefox */
@ -27,6 +28,9 @@
color: red;
background: yellow;
}
.select2-container .select2-selection--single .select2-selection__rendered {
margin-top: 0px !important;
}
</style>
{if isset($xheader)}