javascript - jQuery TimeSlider refreshing cells -
i using timeslider component: https://github.com/v-v-vishnevskiy/timeslider
demo: http://v-v-vishnevskiy.github.io/timeslider/demo/demo.html
i trying change start_timestamp of slider:
<div id="c1" class="timecell" start_timestamp="1468231842698" stop_timestamp="1468239761464" style="left:503.0011225231481px;width:167.63221081018517px;background-color:#76c4ff;">2:11:58</div>
by using
$('#c1').attr('start_timestamp', '14682310000');
but problem slider won't update until move dragging.
anyone have idea on how update slider same time update attribute?
you can add/edit cell doing: $("#slider123").timeslider("edit", cell);
also adding, toggling, editing, removing, removing cells , shifting time slider starts.
using "add", "toggle", "edit", "remove", "remove_all" , "new_start_timestamp" respectively. take cell remove takes cell id. example add new:
$("#slider123").timeslider("add",{'_id': 'c3', 'start': 60*12*1000, 'stop': 60*20*1000*2});
Comments
Post a Comment