Required library edition: Required library file: dhtmlxtoolbar.js
return item type by item id (string)
var type = toolbar.getType(itemId);