No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
setTabTitle()
使用方法
主タブまたはサブタブのタイトルを設定します。このメソッドは、API バージョン 20.0 以降でのみ使用できます。
構文
1sforce.console.setTabTitle(tabTitle:String, (optional)tabID:String)引数
サンプルコード – Visualforce API バージョン 20.0 以降
1swfobject.registerObject("clippy.codeblock-1", "9");<apex:page standardController="Case">
2 <A HREF="#" onClick="testSetTabTitle();return false">
3 Click here to change this tab's title</A>
4
5 <apex:includeScript value="/support/console/20.0/integration.js"/>
6 <script type="text/javascript">
7 function testSetTabTitle() {
8 //Set the current tab's title
9 sforce.console.setTabTitle('My New Title');
10 }
11 </script>
12</apex:page>応答
なし
サンプルコード – Visualforce API バージョン 25.0 以降
1swfobject.registerObject("clippy.codeblock-2", "9");<apex:page>
2 <A HREF="#" onClick="testSetTabTitle();return false">
3 Click here to change the title of the focused primary tab</A>
4
5 <apex:includeScript value="/support/console/25.0/integration.js"/>
6 <script type="text/javascript">
7 sforce.console.getFocusedPrimaryTabId(function(result){
8 sforce.console.setTabTitle('My New Title', result.id);
9 });
10 </script>
11</apex:page>応答
なし