No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
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");<apex:page>
2
3 <A HREF="#" onClick="testBlinkCustomConsoleComponentButtonText();return false">
4 Click here to blink the button text on a custom console component</A>
5
6 <apex:includeScript value="/support/console/25.0/integration.js"/>
7 <script type="text/javascript">
8 function testBlinkCustomConsoleComponentButtonText() {
9 //Blink the custom console component button text
10 sforce.console.blinkCustomConsoleComponentButtonText('Hello World', 10, function(result){
11 if (result.success) {
12 alert('The text blinking starts!');
13 } else {
14 alert('Could not initiate the text blinking!');
15 }
16 });
17 }
18 </script>
19</apex:page>応答
このメソッドは非同期であるため、コールバックメソッドのオブジェクトで応答を返します。応答オブジェクトには次の項目が含まれます。
| 名前 | 型 | 説明 |
|---|---|---|
| success | boolean | ボタンテキストが正常に点滅した場合は true、ボタンテキストが正常に点滅しなかった場合は false。 |