pos-gis/public/assets/js/pages/crud/forms/widgets/bootstrap-touchspin.min.js

1 line
1.7 KiB
JavaScript
Raw Normal View History

2024-10-07 06:13:42 +00:00
"use strict";var KTKBootstrapTouchspin={init:function(){$("#kt_touchspin_1, #kt_touchspin_2_1").TouchSpin({buttondown_class:"btn btn-secondary",buttonup_class:"btn btn-secondary",min:0,max:100,step:.1,decimals:2,boostat:5,maxboostedstep:10}),$("#kt_touchspin_2, #kt_touchspin_2_2").TouchSpin({buttondown_class:"btn btn-secondary",buttonup_class:"btn btn-secondary",min:-1e9,max:1e9,stepinterval:50,maxboostedstep:1e7,prefix:"$"}),$("#kt_touchspin_3, #kt_touchspin_2_3").TouchSpin({buttondown_class:"btn btn-secondary",buttonup_class:"btn btn-secondary",min:-1e9,max:1e9,stepinterval:50,maxboostedstep:1e7,postfix:"$"}),$("#kt_touchspin_4, #kt_touchspin_2_4").TouchSpin({buttondown_class:"btn btn-secondary",buttonup_class:"btn btn-secondary",verticalbuttons:!0,verticalup:'<i class="ki ki-plus"></i>',verticaldown:'<i class="ki ki-minus"></i>'}),$("#kt_touchspin_5, #kt_touchspin_2_5").TouchSpin({buttondown_class:"btn btn-secondary",buttonup_class:"btn btn-secondary",verticalbuttons:!0,verticalup:'<i class="ki ki-arrow-up"></i>',verticaldown:'<i class="ki ki-arrow-down"></i>'}),$("#kt_touchspin_1_validate").TouchSpin({buttondown_class:"btn btn-secondary",buttonup_class:"btn btn-secondary",min:-1e9,max:1e9,stepinterval:50,maxboostedstep:1e7,prefix:"$"}),$("#kt_touchspin_2_validate").TouchSpin({buttondown_class:"btn btn-secondary",buttonup_class:"btn btn-secondary",min:0,max:100,step:.1,decimals:2,boostat:5,maxboostedstep:10}),$("#kt_touchspin_3_validate").TouchSpin({buttondown_class:"btn btn-secondary",buttonup_class:"btn btn-secondary",verticalbuttons:!0,verticalupclass:"ki ki-plus",verticaldownclass:"ki ki-minus"})}};jQuery(document).ready(function(){KTKBootstrapTouchspin.init()});