setCustomConsoleComponentWidth()
構文
1sforce.console.setCustomConsoleComponentWidth( width:number, callback:Function)サンプルコード – Visualforce
1<apex:page>
2
3 <A HREF="#" onClick="testSetCustomConsoleComponentWidth();return false">
4 Click here to set the custom console component width to 100px</A>
5
6 <apex:includeScript value="/support/console/52.0/integration.js"/>
7 <script type="text/javascript">
8 function testSetCustomConsoleComponentWidth() {
9 // Set the custom console component width
10 sforce.console.setCustomConsoleComponentWidth(100);
11 }
12 </script>
13</apex:page>応答
このメソッドは非同期であるため、コールバックメソッドのオブジェクトで応答を返します。応答オブジェクトには次の項目が���まれます。
| 名前 | 型 | 説明 |
|---|---|---|
| success | boolean | メソッドコールが成功した場合は true、それ以外の場合は false。 |