Created
October 1, 2013 13:51
-
-
Save Pierry/6778753 to your computer and use it in GitHub Desktop.
Criando slider com gráfico com a Kendo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Gauge Div--> | |
<div id="main"> | |
<div id="radGauge"></div> | |
<input type="range" id="slider" min=0 max=500 step=5 /> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add Gauge initialization code | |
var radGauge = $('#radGauge').kendoRadialGauge({ | |
scale: { | |
max: 500, | |
majorUnit: 50 | |
} | |
}).data('kendoRadialGauge'); | |
var slider = $("#slider").kendoSlider().data('kendoSlider'); | |
slider.bind('change', function(e){ | |
radGauge.value(e.value); | |
}); | |
radGauge.value(slider.value()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment