Skip to content

Commit 84899a9

Browse files
committed
fix missleading comment in row edit documents
in the line edited, the function that's being referred too must call setSavePromise, returning a promise as previously stated does not do anything as the result from events is ignored and not accessible to the caller.
1 parent becebb5 commit 84899a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/tutorial/205_row_editable.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The basic method of operation is that whenever a cell is edited (identified usin
3131
event) an `isDirty` flag is set on the row, and a `saveTimer` is set. If another cell in the same row commences
3232
editing within 2 seconds (or other configurable time), then the timer will be destroyed again. Otherwise
3333
upon the timer completing the row will be set to a status of `isSaving` and greyed out, and the `saveRow`
34-
event will be called. The function called by this event must return a promise, and the rowedit feature
34+
event will be called. The function called by this event must call `rowEdit.setSavePromise`, and the rowedit feature
3535
will wait on that promise.
3636

3737
If the cellNav feature is also enabled, then a setFocus on a cell within the row is sufficient to delay

0 commit comments

Comments
 (0)