Toolbar - buttonSelect

How can I open a list when clicking on the image and/or text (not the down arrow).

It can be done only by modification in dhtmlxtoolbar.js.

Try to find the code in dhtmlxtoolbar.js (line 1224):

this.arw.onmouseup = function(e) {
e = e||event;
e.cancelBubble = true;
}

and add the following commands after it:

this.obj.onmousedown = this.arw.onmousedown;
this.obj.onclick = this.arw.onclick;
this.obj.onmouseup = this.arw.onmouseup;

is this still true with 2.6?

I found that the addButtonSelect function has two undocumented parameters :

addButtonSelect(id, pos, text, opts, img, imgdis, null, true);

the last parameter does the magic: List opens on button click and not only on arrow click.

the last parameter does the magic: List opens on button click and not only on arrow click.

Yes, the 8th parameter of the addButtonSelect method allows to open select on the whole button click.

Thanks xlthor, it was of great help!