API changes in 1.3: Inline Edit
Lam, Mike
mlam at ocad.ca
Wed Nov 3 20:18:31 UTC 2010
A lot of refactoring has been made to the Inline Edit and I have just updated the API. Anastasia, sorry I didn't update the API sooner!
Here's an update to Anastasia's email:
Changes to Default Values of Options
------------------------------------
useTooltip: true, // was false
tooltipText: "Click item to edit" // was "Select or press Enter to edit"
New Options
-----------
new selector:
textEditButton: ".flc-inlineEdit-textEditButton"
new styles:
instructionText: "fl-inlineEdit-instructionText", // New in v1.3
textEditButton: "fl-inlineEdit-text", // New in v1.3
displayModeRenderer: "fl-inlineEdit-wrapper", // New in v1.3
inlineBlock: "fl-inlineEdit-inlineBlock", // New in v1.3
new strings options (wasn't there before)
strings: {
textEditButton: "Edit text %text",
editModeToolTip: "Press Escape to cancel, Enter or Tab when finished."
}
all-new options:
displayModeRenderer: defaultDisplayModeRenderer, // a function that creates the display mode view
urls: {
textEditButtonImage: "../images/inline_edit_edit_button_16x16.png"
}
NOTE:
There are two strings that could be moved into the new strings option, but haven't been, to maintain backward compatibility:
tooltipText and defaultViewText
There are comments to this effect in the code.
Functions moved to public namespace
-----------------------------------
Many functions were moved into the public "fluid.inlineEdit.*" namespace that weren't there before. These are *not* public functions on the component's 'that.' I think they're probably in the class of "things that aren't actually meant for public use." They include event binding functions, view accessor setup functions, etc.
Mike.
________________________________________
From: fluid-work-bounces at fluidproject.org [fluid-work-bounces at fluidproject.org] On Behalf Of Cheetham, Anastasia [acheetham at ocad.ca]
Sent: November 3, 2010 3:44 PM
To: Fluid Work
Subject: API changes in 1.3: Inline Edit
Here is a summary of the Inline Edit API changes that are currently expected to be released with 1.3:
Changes to Default Values of Options
------------------------------------
useTooltip: true, // was false
tooltipText: "Click item to edit" // was "Select or press Enter to edit"
New Options
-----------
new selector:
textEditButton: ".flc-inlineEdit-textEditButton"
new styles:
keyboardTooltip: "fl-inlineEdit-keyboardTooltip",
textEditButton: "fl-inlineEdit-text",
instructionText: "fl-inlineEdit-instructionText",
displayModeRenderer: "fl-inlineEdit-wrapper"
new strings options (wasn't there before)
strings: {
textEditButton: "Edit text %text",
editModeToolTip: "Press Escape to cancel, Enter or Tab when finished."
}
all-new options:
textEditButtonRenderer: defaultTextEditButtonRenderer, // a function that creates the textEditButton
renderKeyboardTooltip: true,
urls: {
textEditButtonImage: "../images/inline_edit_edit_button_16x16.png"
}
NOTE:
There are two strings that could be moved into the new strings option, but haven't been, to maintain backward compatibility:
tooltipText and defaultViewText
There are comments to this effect in the code.
Functions moved to public namespace
-----------------------------------
Many functions were moved into the public "fluid.inlineEdit.*" namespace that weren't there before. These are *not* public functions on the component's 'that.' I think they're probably in the class of "things that aren't actually meant for public use." They include event binding functions, view accessor setup functions, etc.
--
Anastasia Cheetham Inclusive Design Research Centre
acheetham at ocad.ca Inclusive Design Institute
OCAD University
_______________________________________________________
fluid-work mailing list - fluid-work at fluidproject.org
To unsubscribe, change settings or access archives,
see http://fluidproject.org/mailman/listinfo/fluid-work
More information about the fluid-work
mailing list