We’re trying to modify/add some buttons on the toolbars in the Mobile version. We’re having a problem with nothing being changed/added when trying to follow the examples and instructions in the documentation. Here’s the code:
[code]dhx.ready(function(){
dhx.ui.fullScreen();
scheduler.config.show_loading = true;
scheduler.config.bottom_toolbar = [
{ view:"segmented", id:"leftbuttons",selected:"list", align:"left",multiview:true,
options:[
{value:"today", label:scheduler.locale.labels.icon_today,width:scheduler.xy.icon_today},
{value:"home", label:"Home",width:scheduler.xy.icon_today,click:"goHome"}
]},
{ view:"segmented", id:"buttons",selected:"list", align:"center",multiview:true,
options:[
{value:"list", label:scheduler.locale.labels.list_tab,width:scheduler.xy.list_tab},
{value:"day", label:scheduler.locale.labels.day_tab,width:scheduler.xy.day_tab},
{value:"month", label:scheduler.locale.labels.month_tab,width:scheduler.xy.month_tab}
]},
{ view:"button",css:"add",id:"add", align:"right",label:" + ",inputWidth:42,width:50},
{ view:"label", label:"",inputWidth:42,width:50, batch:"readonly"}
];
//object constructor
dhx.ui({
view: "scheduler",
id: "scheduler",
save: "/cfc/calendar/dhtmlxCalendar.cfc"
});
// method load() lets you to populate the scheduler with data
$$("scheduler").load("/cfc/calendar/dhtmlxCalendar.cfc","json");
$$('scheduler').$$('month').show();
$$('scheduler').$$('buttons').setValue('month');
});[/code]
Nothing seems to change on the toolbar no matter what we change. There is a “goHome” function defined but I believe that is irrelevant to the problem. It just does a location.href to the home page on click.
Any ideas or corrections to our code?