Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Deck of Cards
idsdkCommentsList
Card
defaulttrue
labelUI Control
titleInterface to create,update,delete & display the list of comments
 
Card
labelController & Methods
titleThe modules to be loaded for using this interface

Controller: commentController, commentsListController

Methods:

commentController

find(): Loads the comment info from local db or make the AJAX request to the server

commentsListController

editMode(): Sets the edit mode for writable fields

cancel(): Sets the read mode for writable fields

createComment(): Creates a new comment

updateIssueComment(Object comment): Updates the specified comment

showNewComment(String DOM_Object_id): Show input view for new comment

cancelNewComment(String DOM_Object_id): Cancel new comment creation mode

deleteComment(Object comment): Deletes the specified comment

addComment(): Adds comment to the current object and returns a deferred object

updateComment(Object comment): Updates the specified comment.

Card
labelTemplate & View
titleThe template that has to be loaded

Template: commentsList.hbs

View: commentsListView

...