jq.schedule.jsを使ってスケジュールアプリを作っているのですが
表示されているデータを変更しようとしているのですが、
変更しようとするrowsに値をセットしても
変更データの行がスケジュール表の下に追加されてしまい、
変更しようとする行の表示データを変更できません。
どなたかjq.schedule.jsの使い方を教えていただけないでしょうか?
JavaScriptの初心者で初歩的な質問で申し訳ありませんが
よろしくお願いいたします。
###該当のソースコード function index_show(event) { setSchedule(); setSchedule02(); } function setSchedule(){ var $sc = jQuery("#schedule").timeSchedule({ startTime: "08:00", // schedule start time(HH:ii) endTime: "20:00", // schedule end time(HH:ii) widthTime:60 * 10, // cell timestamp example 10 minutes timeLineY:60, // height(px) verticalScrollbar:20, // scrollbar (px) timeLineBorder:2, // border(top and bottom) debug:"#debug", // debug string output elements rows : { '1' : { title : '01:' }, '2' : { title : '02:' } }, change: function(node,data){ alert("change event"); }, init_data: function(node,data){ }, click: function(node,data){ alert("click event"); }, append: function(node,data){ }, time_click: function(time,data){ alert("time click event"); } }); } function setSchedule02(){ var $sc = jQuery("#schedule").timeSchedule({ rows : { '1' : { title : '01:', schedule:[ { start:'08:30', end:'09:30', text:'会議001', data:{ } } ] } } }); }
'1'の行にsetSchedule02で設定しているデータを追加したいのですが、
追加した行が表の下に追加されてしまいます。
よろしくお願いします。
jq.schedule.js
http://www.ateliee.com/archives/2040
テストソース
function index_show(event) { setSchedule(); // $("#schedule").timeSchedule().remove(); $("#schedule").remove(); setSchedule(); } function setSchedule(){ var $sc = jQuery("#schedule").timeSchedule({ startTime: "08:00", // schedule start time(HH:ii) endTime: "20:00", // schedule end time(HH:ii) widthTime:60 * 10, // cell timestamp example 10 minutes timeLineY:60, // height(px) verticalScrollbar:20, // scrollbar (px) timeLineBorder:2, // border(top and bottom) debug:"#debug", // debug string output elements rows : { '1' : { title : '01:' }, '2' : { title : '02:' } }, change: function(node,data){ alert("change event"); }, init_data: function(node,data){ }, click: function(node,data){ alert("click event"); }, append: function(node,data){ }, time_click: function(time,data){ alert("time click event"); } }); }
回答1件
あなたの回答
tips
プレビュー