Onclick event for dhxLayout?

Hello,

I would like to attach an event to expand/collapse a cell with a single click.
Is this possible?

Thanks in advance
Andruscha

Hello,

layout cells call onCollapse and onExpand events:

layout.attachEvent(“onCollapse”,function(id){
/your code here/
})

layout.attachEvent(“onExpand”,function(id){
/your code here/
})

Hello,

I’m sorry for misunderstanding. I meant the possibility to attach an onclick-event.

Andruscha

Hello,

Here is the list of supported events:

docs.dhtmlx.com/doku.php?id=dhtm … api_events

there is not onclick event.

Please explain when the event you want should be fired. Possibly we could provide a solution.