Name |
Description |
Values |
Default |
||
---|---|---|---|---|---|
|
Javascript object containing selectors for various fragments of the Inline Edit component. |
The object can contain any subset of the following keys: |
|
||
New in v1.3: |
Configuration of short messages and strings which the component uses in its UI |
key-value structure with |
|
||
|
JavaScript object containing listeners to be attached to the supported events. |
Keys in the object are event names, values are functions or arrays of functions. |
|||
|
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: |
|
||
|
Javascript object containing pixel values that will configure the size of the edit field. |
The object can contain any subset of the following keys: |
|
||
|
Indicates whether the values stored for |
boolean |
|
||
|
Determines whether receiving an "Enter" keypress will cause the component to finish editing and commit the changed value. If this is given a direct value |
boolean |
|
||
New in v1.3: |
A function that calls upon the markup corresponding to the display mode of the component. |
function - |
|
||
|
A function that creates or recognises the markup corresponding to the editable view of the component. The function is intended to inspect the state of the existing markup, and if it is "incomplete" in some way, to fill in the required fields. In all cases, the function returns a structure
|
function - |
|
||
|
A ViewAccessor, or name of one, which is used to store and retrieve the editable value from the read-only view of the control, peering with the tag referenced by the selector |
|
"fluid.inlineEdit.standardAccessor" |
||
|
A InlineEditView, or name of one, which is used to operate the implementation of the |
|
"fluid.inlineEdit.standardDisplayView" |
||
|
As for |
|
"fluid.inlineEdit.standardAccessor" |
||
|
As for |
|
"fluid.inlineEdit.standardEditView" |
||
|
For |
boolean |
false |
||
|
A function which acts on the overall component to bind a handler for the |
|
null |
||
|
Indicates whether or not to automatically select the editable text when the component switches into edit mode. |
boolean |
|
||
|
The default text to use when filling in an empty component. Set to empty to suppress this behaviour |
string |
"Click here to edit" |
||
|
Indicates whether or not the component should display a custom ("invitation") tooltip on mouse hover |
boolean |
|
||
|
The text to use for the tooltip to be displayed when hovering the mouse over the component |
string |
"Click item to edit" |
||
|
The id to be used for the DOM node holding the tooltip |
string |
"tooltip" |
||
|
The delay, in ms, between starting to hover over the component and showing the tooltip |
number |
1000 |
The options for the creation of multiple Inline Edits are the same as those for the creation of a single Inline Edit, with the addition of a selector for identifying the editable elements. The default selector is defined as follows:
selectors: { editables: ".flc-inlineEditable" } |
Several of the InlineEdit configuration elements make use of various "Implicit" or "Duck Typed" objects which have particular structures or signatures.
/* copied from Confluence main-actions.css */ .mytable, .mytable td, .mytable th { border:1px solid #CCCCCC; padding:3px 4px; vertical-align:top; border-collapse: collapse; } .duckrow { background-color: #eee; } |
<table class="mytable"> <tr><th>Type name</th><th>Description</th><th>Layout</th></tr> <tr><td><code>ViewAccessor</code></td><td>Appears as <code>displayAccessor</code> and <code>editAccessor</code>. Used to convey updates to and from the model to its representation in the DOM. Exposes a single function <code>value</code> with the same semantics as <code>jQuery.val()</code>.</td><td> <code> value: function( [optional value]) } </code></td></tr> <tr><td><code>InlineEditView</code></td><td>Appears as <code>displayView</code> and <code>editView</code>. Used to wrap the action of the relevant ViewAccessor as it maintains synchrony between the model and DOM. For some views, especially where there is some "default text" to invite the user to edit, there is extra formality to displaying the model which is InlineEdit-specific, rather than markup-specific. Such logic goes in this class, and is less frequently user-configured.</td><td><code>{ refreshView: function (that, source) } </code></td></tr> <tr><td><code>InlineEditRenderer</code></td><td>Appears as <code>editModeRenderer</code>. Actually a function, rather than a structure, with a fairly complex contract. Is passed the entire component <code>that</code> in order to inspect the current markup situation at startup time, to manipulate it if necessary to render and initialise the editable component view, and return the relevant nodes which it has either created or discovered.</td><td><code>function (that) -> { container, field } </code></td></tr> </table> |