この文章は Salesforce 機械翻訳システムを使用して翻訳されました。詳細はこちらをご参照ください。
英語に切り替える

blinkCustomConsoleComponentButtonText()

ページ上のアプリケーションレベルのカスタムコンソールコンポーネントでボタンのテキストを点滅させます。このメソッドは、API バージョン 25.0 以降でのみ使用できます。

構文

1sforce.console.blinkCustomConsoleComponentButtonText(alternateText:String, interval:number, (optional)callback:Function)

引数

名前 説明
alternateText string ボタンテキストが点滅するときに表示する代替テキスト。
interval number テキストの点滅間隔 (ミリ秒) を制御します。
callback function メソッドの完了時にコールされる JavaScript メソッド。

サンプルコード – Visualforce

1swfobject.registerObject("clippy.codeblock-1", "9");
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17<apex:page>
18
19    <A HREF="#" onClick="testBlinkCustomConsoleComponentButtonText();return false">
20         Click here to blink the button text on a custom console component</A> 
21
22    <apex:includeScript value="/support/console/25.0/integration.js"/>
23    <script type="text/javascript">
24        function testBlinkCustomConsoleComponentButtonText() {
25        //Blink the custom console component button text
26            sforce.console.blinkCustomConsoleComponentButtonText('Hello World', 10, function(result){
27              if (result.success) {
28               alert('The text blinking starts!');
29              } else {
30               alert('Could not initiate the text blinking!');
31              }
32            });
33           }
34    </script>
35</apex:page>

応答

このメソッドは非同期であるため、コールバックメソッドのオブジェクトで応答を返します。応答オブジェクトには次の項目が含まれます。

名前 説明
success boolean ボタンテキストが正常に点滅した場合は true、ボタンテキストが正常に点滅しなかった場合は false