在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:aterrien/jQuery-Knob开源软件地址:https://github.com/aterrien/jQuery-Knob开源编程语言:JavaScript 80.4%开源软件介绍:jQuery Knob
Example<input type="text" value="75" class="dial">
<script>
$(function() {
$(".dial").knob();
});
</script> OptionsOptions are provided as attributes 'data-option': <input type="text" class="dial" data-min="-50" data-max="50"> ... or in the "knob()" call : $(".dial").knob({
'min':-50,
'max':50
}); The following options are supported : Behaviors :
UI :
Hooks<script>
$(".dial").knob({
'release' : function (v) { /*make something*/ }
});
</script>
The scope (this) of each hook function is the current Knob instance (refer to the demo code). Example<input type="text" value="75" class="dial">
<script>
$(".dial").knob({
'change' : function (v) { console.log(v); }
});
</script> Dynamically configure<script>
$('.dial').trigger(
'configure',
{
"min":10,
"max":40,
"fgColor":"#FF0000",
"skin":"tron",
"cursor":true
}
);
</script> Set the value<script>
$('.dial')
.val(27)
.trigger('change');
</script> Supported browserTested on Chrome, Safari, Firefox, IE>=8.0 (IE8.0 with excanvas). |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论