Changes between Initial Version and Version 3 of Ticket #4098


Ignore:
Timestamp:
Aug 25, 2007, 1:03:09 AM (13 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4098

    • Property Owner changed from haysmark to Douglas Hays
    • Property Summary changed from InlineEditBox: investigate changing API to have one widget and defer creation of edit widget to InlineEditBox: change API to have one widget and defer creation of edit widget
  • Ticket #4098 – Description

    initial v3  
    77
    88This has two disadvantages:
    9  1. Tedious to create such a widget in markup or programatically (since there are two widgets involved)
     9 1. Tedious to create such a widget in markup or programmatically (since there are two widgets involved)
    1010 2. Performance issues since the editor widget is created on page load rather than on the fly (when you click to edit).  This prevents InlineEditBox from being used for table cells or tree cells (or any place there would be hundreds of said InlineEditBox widgets).
    1111
    12 So, let's consider making this work like 0.4 where there's just a single widget:
     12Make this work like 0.4 where there's just a single widget:
    1313
    1414{{{
    15 <div dojoType=InlineEditTextBox> hello world </div>
     15<div dojoType=InlineEditBox> hello world </div>
    1616}}}
    17 or
     17and if you need a custom editor then specify it as a parameter
    1818{{{
    19 <input dojoType=InlineEditNumberBox value="3">
     19<div dojoType=InlineEditBox editor=dijit.form.NumberTextBox
     20editorParams="{required: true}">
     213
     22</div>
    2023}}}
    21 ...or might also be able to do something like the constraints option on validation widgets, where you specify a JSON string for embedded arguments:
    22 {{{
    23 <div dojoType=InlineEditBox editor=dijit.form.NumberTextBox value=3
    24 editorParams="{required: true}">
    25 }}}
     24Note that the developer is responsible for inserting the localized value into the markup (in the cases where the canonical value is different than the localized value), and then the edit widget needs an interface to be initialized from a localized value.
    2625
    2726See related bug #4097.  Fixing this will fix that bug too.