Opened 12 years ago

Closed 12 years ago

#2554 closed enhancement (wontfix)

[ccla] [patch] InlineEditBox -- add onClickParentNode feature.

Reported by: csawyer@… Owned by: Douglas Hays
Priority: low Milestone: 0.9beta
Component: Dijit Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description

This may only be useful for me, and my uses, but I was putting InlineEditBox? inside a table, and it wouldn't work when clicking on the td element, which I found annoying, so I patched InlineEditBox? to allow 'editing' to happen when clicking on it's parent node, and not on the actual value itself(tho clicking on the value still works..). This can also be useful if the value is null, or empty(it's hard to click on nothing). Patch file included (against 0.4.x).

this adds a new option: onClickParentNode, which is a boolean, and alters postCreate().

Attachments (1)

InlineEditBoxParentNode.txt (1.0 KB) - added by csawyer@… 12 years ago.
patch file to add onClickParentNode option.

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by csawyer@…

Attachment: InlineEditBoxParentNode.txt added

patch file to add onClickParentNode option.

comment:1 Changed 12 years ago by bill

Component: WidgetsDijit
Milestone: 0.91.0
Owner: changed from bill to Douglas Hays

I don't have a strong opinion on whether we should have this or not.

comment:2 Changed 12 years ago by Douglas Hays

Milestone: 1.00.9beta
Resolution: wontfix
Status: newclosed

I tried the following using the rewritten InlineEditBox? for 0.9 and it already works:
<table><tr><td>

<span id="areaEditable" dojoType="dijit.form.InlineEditBox?">

<textarea dojoType="dijit.form.Textarea">I'm a table cell</textarea>

</span>

</td></tr></table>
The 0.9 widget will not be backported to 0.4.x.

Note: See TracTickets for help on using tickets.