I can’t get the following code to work in the 03_tree example, I added the combo includes files
I added the sample as stated in the help chm file
var snacks = [
{ key: 5, label: ‘Pineapple’ },
{ key: 6, label: ‘Chocolate’ },
{ key: 7, label: ‘Chips’ },
{ key: 8, label: ‘Apple pie’ }
];
scheduler.config.lightbox.sections=[
{name:“description”, height:130, map_to:“text”, type:“textarea” , focus:true},
{name:“snack”, options: snacks, map_to:“bus”, type:“combo”, image_path: “…/…/codebase/imgs/”, filtering: true },
{name:“custom”, height:23, type:“timeline”, options:null , map_to:“section_id” }, //type should be the same as name of the tab
{name:“time”, height:72, type:“time”, map_to:“auto”}];
I had to change the type from “dhtmlx_combo” to “combo” so it now loads but I cannot see the options. I notice that the rendering is done in dhtmlxscheduler_editors.js and that its render function only does the control and not the “snacks” data structure.
render: function (B) {
var A = “”;
A += “
return A
},
Am I using it right ?