setCustomConsoleComponentVisible()
ページに表示されるアプリケーションレベルのカスタムコンソールコンポーネントのウィンドウ表示を設定します。このメソッドは API バージョン 32.0 以降で使用できます。API バージョン 31.0 以前では、このメソッドは setCustomConsoleComponentWindowVisible() という名前でした。
構文
1sforce.console.setCustomConsoleComponentVisible(visible:Boolean, (optional)callback:Function)引数
| 名前 | 型 | 説明 |
|---|---|---|
| visible | boolean | カスタムコンソールコンポーネントウィンドウが表示される場合は true、非表示になる場合は false。 |
| callback | function | メソッドの完了時にコールされる JavaScript メソッド。 |
サンプルコード – Visualforce
1<apex:page>
2
3 <A HREF="#" onClick="testSetCustomConsoleComponentVisible();return false">
4 Click here to make the custom console component window visible</A>
5
6 <apex:includeScript value="/support/console/45.0/integration.js"/>
7 <script type="text/javascript">
8 function testSetCustomConsoleComponentVisible() {
9 // Make the custom console component window visible
10 sforce.console.setCustomConsoleComponentVisible(true);
11 }
12 </script>
13</apex:page>応答
| 名前 | 型 | 説明 |
|---|---|---|
| success | boolean | ボタンウィンドウの表示設定に成功した場合は true、ボタンウィンドウの表示設定に失敗した場合は false。 |