isCustomConsoleComponentWindowHidden()
Determines if the application-level
custom console component window is hidden. This method is available in API versions
25.0 through 31.0.
Syntax
sforce.console.isCustomConsoleComponentWindowHidden((optional) callback:Function)
Arguments
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. |