Server IP : 150.95.80.236 / Your IP : 18.188.142.218 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/uat.pcu.in.th/demo15/src/js/custom/documentation/forms/ |
Upload File : |
"use strict"; // Class definition var KTFormsMultiselectsplitterDemos = function() { // Private functions var example1 = function() { $("#kt_multiselectsplitter_example_1").multiselectsplitter(); } var example2 = function() { $('#kt_multiselectsplitter_example_2').multiselectsplitter({ selectSize: 7, clearOnFirstChange: true, groupCounter: true }); } var example3 = function() { $('#kt_multiselectsplitter_example_3').multiselectsplitter({ groupCounter: true, maximumSelected: 2 }); } var example4 = function() { $('#kt_multiselectsplitter_example_4').multiselectsplitter({ groupCounter: true, maximumSelected: 3, onlySameGroup: true }); } var example5 = function() { $('#kt_multiselectsplitter_example_5').multiselectsplitter({ size: 6, groupCounter: true, maximumSelected: 2, maximumAlert: function(maximumSelected) { alert("You choose " + ( maximumSelected + 1 ) + " options. Are you crazy ?"); }, createFirstSelect: function (label, $originalSelect) { return "<option class=\"text-success\">prefix - " + label + "</option>"; }, createSecondSelect: function (label, $firstSelect) { return "<option class=\"text-danger\"> ??? </option>"; } }); } return { // Public Functions init: function() { example1(); example2(); example3(); example4(); example5(); } }; }(); // On document ready KTUtil.onDOMContentLoaded(function() { KTFormsMultiselectsplitterDemos.init(); });