Class ecm.widget.listView.editors.CommentEditor
Extends
dijit._WidgetBase.
Provides an editor that is used to add or edit comments of an item.
Defined in: <ecm\widget\listView\editors\CommentEditor.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Method Summary
Method Attributes | Method Name and Description |
---|---|
isValid()
Returns true if the comment text is not empty
|
|
This event is called when a comment is emptied.
|
|
onSaveComment(response)
This event is called after the comment is saved.
|
|
This event is called when a comment is being added or edited.
|
|
Overrides
postCreate to make necessary event connections. |
|
resize()
Overrides
resize to adjust the size of the text input box after resizing. |
|
saveComment(callback, errorback)
Saves a comment to the item with the text in the input box.
|
Method Detail
isValid()
Returns true if the comment text is not empty
onEmptyComment()
This event is called when a comment is emptied.
onSaveComment(response)
This event is called after the comment is saved.
- Parameters:
- response
- A JSON object containing the saved comment and an array of all comments of the item
onStartComment()
This event is called when a comment is being added or edited.
postCreate()
Overrides
postCreate
to make necessary event connections.
resize()
Overrides
resize
to adjust the size of the text input box after resizing.
saveComment(callback, errorback)
Saves a comment to the item with the text in the input box.
- Parameters:
- callback
- errorback