Posted
on Feb 1, 2011
(permalink)
I trying to manually show a custom command button to handle this with docking disabled. I can get expand to work and collapse to work, but I need to detect if the dock is expanded and collapsed. What is wrong with my code below for this?
function ToggleState(dockableObject, command)
{
if(dockableObject.Expanded == "True")
{
dockableObject.Collapse();
}
else
{
dockableObject.Expand();
}
}