Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Description

Values

Default

selectors

Javascript object containing selectors for various fragments of the Inline Edit component.

The object can contain any subset of the following keys:
text   text
  editContainer
editContainer
edit   edit
Any values not provided will revert to the default.

Code Block
javascript
javascript
selectors: {
    text: ".text",
    editContainer: ".editContainer",
    edit: ".edit"
}

styles

Javascript object containing CSS style names that will be applied to the Inline Edit component.

The object can contain any subset of the following keys:
  invitation
invitation
focus   focus
Any values not provided will revert to the default.

Code Block
javascript
javascript
styles: {
    invitation: "invitation",
    focus: "focus"
}

paddings

Javascript object containing pixed values that will configure the size of the edit field.

The object can contain any subset of the following keys:
  add
add
minimum   minimum
Any values not provided will revert to the default.

Code Block
javascript
javascript
paddings: {
    add: 10,
    minimum: 80
}

finishedEditing

A function that will be called each time the Inline Edit component leaves edit mode. This function can be used to communicate changes in the field to the server, or to take any other action desired by the implementor.

a function

Code Block
javascript
javascript
finishedEditing: function () {
}

...