dhtmlschedular.js にカスタム テキスト フィールドを追加しましたが、
パスをトレースできません。カスタム フィールドの値をコントローラーで取得するにはどうすればよいですか。
または、データを db に保存するための dhtmlx の完全なフロー。
私はこれまでにやった:-
lightbox: {
sections: [
{name: "description", height: 200, map_to: "text", type: "textarea", focus: true },
{ name:"prabhu", height:200, map_to:"txt1", type:"dhiraj"},
{name: "time", height: 72, type: "time", map_to: "auto"}]
dhiraj: {
render:function(sns){
return "<div class='dhx_cal_ltext' style='height:60px;'>Text <input id='txt1' name='txt1' type='text'><br/>Details <input id='calendarDetailId' name='txt2' type='text'></div>";
},
set_value:function(node,value,ev){
node.childNodes[1].value=value||"";
node.childNodes[4].value=ev.details||"";
},
get_value:function(node,ev){
ev.location = node.childNodes[4].value;
return node.childNodes[1].value;
},
focus:function(node){
var a=node.childNodes[1]; a.select(); a.focus();
}
}
};