userData for the toolbar

Hi,

I have the same question as the post “userData for the toolbar & toolbar commands”.
Support person has mentioned that toolbar doesn’t provide neither userdata tag nor custom attributes but it might get added in future.
So just wanted to check if its alreay been added. Please mention version number if its alreay been added.

Hello,

Please use attached dhtmlxtoolbar.js

XML:

<item type=“button”…>
Click me!

JS:
toolbar.setUserData(id, name, value);
var value = toolbar.getUserData(id, name);
dhtmlxtoolbar.js.zip (13.1 KB)