MIF_E31210529/public/vendors/scripts/advanced-components.js

36 lines
856 B
JavaScript

// Switchery
var elems = Array.prototype.slice.call(document.querySelectorAll('.switch-btn'));
$('.switch-btn').each(function() {
new Switchery($(this)[0], $(this).data());
});
// Bootstrap Touchspin
$("input[name='demo_vertical2']").TouchSpin({
verticalbuttons: true,
// verticalupclass: 'fa fa-plus',
// verticaldownclass: 'fa fa-minus'
});
$("input[name='demo3']").TouchSpin();
$("input[name='demo1']").TouchSpin({
min: 0,
max: 100,
step: 0.1,
decimals: 2,
boostat: 5,
maxboostedstep: 10,
postfix: '%'
});
$("input[name='demo2']").TouchSpin({
min: -1000000000,
max: 1000000000,
stepinterval: 50,
maxboostedstep: 10000000,
prefix: '$'
});
$("input[name='demo3_22']").TouchSpin({
initval: 40
});
$("input[name='demo5']").TouchSpin({
prefix: "pre",
postfix: "post"
});