Toolbar action with Object method

Hi,

Is impossible to call object method in toolbar action.

For example I have output from XML:

And have JS:

APP.Warehouse = {
newWarehouse: function() { console.log(‘test’); }
}

The pushing button, nothing happend. But then I add into button action for example: “newWarehouse” and in JS just writing normal function " function newWarehouse() { }" everything works fine.

Is it imposibble to call method in toolbar action?

Hi
There is a special event handler “onCkick” for it:
docs.dhtmlx.com/api__dhtmlxtoolb … event.html
Just put your action code in the handler function

Related demo online:
dhtmlx.com/docs/products/dhtmlxT … click.html