isCustomConsoleComponentWindowHidden()

Determines if the application-level custom console component window is hidden. This method is available in API versions 25.0 through 31.0.

If this method is called from a popped out component in a Salesforce console where multi-montior components is turned on, nothing will happen. Starting in API version 32.0, this method is no longer available and has been replaced by isCustomConsoleComponentHidden(). For more information, see “isCustomConsoleComponentHidden().”

Note

Syntax

sforce.console.isCustomConsoleComponentWindowHidden((optional) callback:Function)

Arguments

Name Type Description
callback function JavaScript method called upon completion of the method.

Sample Code–Visualforce

<apex:page>

     <A HREF="#" onClick="testIsCustomConsoleComponentWindowHidden();return false">
         Click here to check if the custom console component window is hidden</A> 

    <apex:includeScript value="/support/console/64.0/integration.js"/>
    <script type="text/javascript">
        function testIsCustomConsoleComponentWindowHidden() {
            sforce.console.isCustomConsoleComponentWindowHidden(checkWindowVisibility);
        }
        
        var checkWindowVisibility = function checkWindowVisibility(result) {
            //Display the window visibility
            if (result.success) {
              alert('Is window hidden: ' + result.hidden);
            } else {
              alert('Error!');
            }
        }
  </script>

</apex:page>

Response

This method is asynchronous, so it returns its response in an object in a callback method. The response object contains the following field:

Name Type Description
hidden boolean true if the custom console component window is hidden; false if the custom console component window is visible.
success boolean true if returning the custom console component window visibility was successful; false if returning the custom console component window visibility wasn't successful.