Javatpoint Logo
Javatpoint Logo

Component in Visualforce Page

The <apex: inlineEditSupport> is another most used component on the VF page that provides inline editing support to the container components. We have to put the component inside the <apex: form> component to use this component.

The <apex: inlineEditSupport> component can only be a descendant of one of the following components:

  1. <apex: repeat>
  2. <apex: form>
  3. <apex: outputField>
  4. <apex: pageBlock>
  5. <apex: pageBlockSection>
  6. <apex: pageBlockTable>
  7. <apex: dataList>
  8. <apex: dataTable>

The <apex: inlineEditSupport> component has the following attributes on the VF page:

1. changedStyleClass

The changedStyleClass is a string-type attribute used for specifying the name of the style class that will be applied to this component when the field's content has changed.

2. disabled

The disabled is a Boolean type attribute that is used for specifying whether inline editing is enabled or not. By default, its value is set to true.

Syntax

3. event

The event is a string-type attribute used for specifying the name of the standard DOM event. The specified DOM event is responsible for triggering inline editing on a field.

Syntax

4. hideOnEdit

The hideOnEdit is an Object-type attribute, i.e., a comma-separated list of button Ids we need to hide when inline editing is activated.

Syntax

5. id

The id is a string-type attribute, i.e., a unique identifier that allows this component to be referenced by other components on the page.

Syntax

6. rendered

The rendered is a Boolean-type attribute used to specify whether this component is rendered on the page. The boolean value true is set as a default value for this attribute.

Syntax

7. resetFunction

The resetFunction is a string-type attribute used for specifying the JavaScript function that can be called when values are reset.

Syntax

8. showOnEdit

The showOnEdit is an Object-type attribute, i.e., a comma-separated list of button IDs which we need to show when inline editing is activated.

Syntax

Let's take an example to understand how we can use this component on the VF page:

ApexInlineEditSupportExample.vfp

Output

<apex: inlineEditSupport> Component in Visualforce Page





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA