This documentation refers to the latest trunk version of the Inline Edit code.
Inline Edit Overview
Allow users to edit content within the context of their work rather than going to an "edit mode".
Constructor
fluid.InlineEdit(componentContainerId, options);
Parameters
componentContainerId
The componentContainerId
parameter is the ID of the root DOM node of the Inline Edit markup.
Join the fluid-talk mailing list and ask your questions there.
options
The options
parameter is an optional collection of name-value pairs that configure the Inline Edit component:
Name |
Description |
Values |
Default |
---|---|---|---|
|
Javascript object containing selectors for various fragments of the Inline Edit markup |
|
selectors: { text: ".text", editContainer: ".editContainer", edit: ".edit" } |
|
|
|
styles: { invitation: "invitation", focus: "focus" } |
|
|
|
paddings: { add: 10, minimum: 80 } |
|
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 |
finishedEditing: function () { } |
Functions
fluid.InlineEdit.edit();
Switches the component into edit mode.
fluid.InlineEdit.finish();
Switches the component out of edit mode into display mode, updating the displayed text with the current content of the edit field.