This function allows you to trigger a function of your own when the Snap-In panel is toggled (collapsed and expanded).
This callback won't be triggered when the Snap-In panel is resized, if you need to do something when it happens, please see RegisterOnSnapInPanelResized.
Parameters
- docuViewareID
- The identifier for the DocuVieware™ instance.
- callback
- The function you want to execute on event.
The callback will recieve a boolean as argument that let you know if the Snap-In panel has been collapsed (true) or expanded (false).
Return Value
1 if error.
Example of usage
This JavaScript makes sure the DocuVieware control is properly loaded and initialized and then subscribes to the event on load.