Select to view content in your preferred language

current selected tool (navigation toolbar)

1168
5
10-11-2011 03:20 AM
HugoAhlenius
Deactivated User
This should be simple - but how can I get the current selected tool?
0 Kudos
5 Replies
derekswingley1
Deactivated User
What do you want to do? If you really need to know, look at navToolbar._navType.
0 Kudos
HugoAhlenius
Deactivated User
Hi,
_navType is not of much use if I put other buttons in the toolbar as well... I am looking into this, since I want to be able to save the current tool in a cookie for persistence.

Thanks for the response!
0 Kudos
HemingZhu
Frequent Contributor
Hi,
_navType is not of much use if I put other buttons in the toolbar as well... I am looking into this, since I want to be able to save the current tool in a cookie for persistence.

Thanks for the response!


How about save the current tool into a global variable for persistence in session.
0 Kudos
derekswingley1
Deactivated User
Agreed with hzhu, save the current tool as a global or as a property on some global object when you activate your toolbar.
0 Kudos
HugoAhlenius
Deactivated User
ok, will do that!
0 Kudos