dhtmlxtoolbar TwoStateButton "pressedState"

I am loading the toolbar from an XML file and in it I am creating two TwoStateButtons. However I am having an issue with the pressedState=“true” not triggering the button to look “pressed” when the page first loads.



Here is my XML









I looked in the API documentation, is this the correct way to declare this type of button?

Also is there more up to date documentation avaliable then the online docs? It seems a lot of features are left out or undocumented.



Problem confirmed and fixed, please use attached js file instead of original one.

dhtmlxtoolbar.zip (6.59 KB)