Hello,
I am using v3.0 build 110713
I am initiating the toolbar using object API extended method. when I specify the openAll: true for butonSelect, clicking on the button does not open the menu.
This is code I am using, please let me know what I am doing wrong.
toolbarData = {
parent:'toolbarMain',
icon_path: dhxToolbarIconPath,
items:[
{
type: "button",
id: "refresh",
text: "Reload",
img: "icon-16x-refresh.png",
tooltip: "Reload"
},
{
type: "buttonSelect",
id: "action",
text: "Action",
img: "icon-16x-action.png",
tooltip: "Action",
openAll:true,
options:[
{
id: "addItem",
type:"obj",
text:"Add Items",
img:"icon-16x-item.png"
}
]
}
]
};
toolbar = new dhtmlXToolbarObject(toolbarData);
toolbar.setSkin(dhxToolbarSkin);
toolbar.attachEvent("onClick", function(id){
switch(id)
{
case "refresh":
alert('refresh');
break;
case "action":
break;
case "addItem":
alert('addItem');
break;
default:
alert('invalid command');
}
});