No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
apex:inlineEditSupport
このコンポーネントにより、<apex:outputField> およびさまざまなコンテナコンポーネントのインライン編集がサポートされます。インライン編集をサポートするには、このコンポーネントも <apex:form> タグ内に含める必要があります。
<apex:inlineEditSupport> コンポーネントは次のタグの子孫としてのみ使用できます。
- <apex:dataList>
- <apex:dataTable>
- <apex:form>
- <apex:outputField>
- <apex:pageBlock>
- <apex:pageBlockSection>
- <apex:pageBlockTable>
- <apex:repeat>
<apex:detail> の inlineEdit 属性も参照してください。
1<!-- For this example to render properly, you must associate the Visualforce page
2
3with a valid contact record in the URL.
4
5For example, if 001D000000IRt53 is the contact ID, the resulting URL should be:
6
7https://Salesforce_instance/apex/myPage?id=001D000000IRt53
8
9See the Visualforce Developer's Guide Quick Start Tutorial for more information. -->
10
11<apex:page standardController="Contact">
12 <apex:form >
13 <apex:pageBlock mode="inlineEdit">
14 <apex:pageBlockButtons >
15 <apex:commandButton action="{!edit}" id="editButton" value="Edit"/>
16 <apex:commandButton action="{!save}" id="saveButton" value="Save"/>
17 <apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel"/>
18 </apex:pageBlockButtons>
19 <apex:pageBlockSection >
20 <apex:outputField value="{!contact.lastname}">
21 <apex:inlineEditSupport showOnEdit="saveButton, cancelButton"
22 hideOnEdit="editButton" event="ondblclick"
23 changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/>
24 </apex:outputField>
25 <apex:outputField value="{!contact.accountId}"/>
26 <apex:outputField value="{!contact.phone}"/>
27 </apex:pageBlockSection>
28 </apex:pageBlock>
29 </apex:form>
30</apex:page>属性
| 属性名 | 属性型 | 説明 | 必須項目 | API バージョン | アクセス |
|---|---|---|---|---|---|
| changedStyleClass | String | 項目のコンテンツが変更されたときに使用される CSS スタイルクラスの名前。 | 21.0 | ||
| disabled | Boolean | インライン編集が有効化されているかどうかを示す boolean 値。指定されていない場合、この値はデフォルトの true に設定されます。 | 21.0 | ||
| event | String | 項目でのインライン��集をトリガする ondblclick、onmouseover などの標準 DOM イベントの名前。 | 21.0 | ||
| hideOnEdit | Object | ボタン ID のカンマ区切りのリスト。これらのボタンはインライン編集が有効化されているときには非表示になります。 | 21.0 | ||
| id | String | ページの他のコンポーネントがコンポーネントを参照できるようにする識別子。 | 10.0 | global | |
| rendered | Boolean | コンポーネントをページに表示するかどうかを指定する boolean 値。指定されていない場合、この値はデフォルトの true に設定されます。 | 21.0 | ||
| resetFunction | String | 値がリセットされた場合にコールされる JavaScript 関数の名前。 | 21.0 | ||
| showOnEdit | Object | ボタン ID のカンマ区切りのリスト。これらのボタンはインライン編集が有効化されているときに表示されます。 | 21.0 |