Versions Compared

Key

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

...

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

Controller: attachmentsListController

Methods:

createAttachmentaddAttachment(Object form_data): Create a new attachment object

showNewAttachment(): Show DOM element for new attachment creation

cancelNewAttachment(): Cancels the new attachment creation mode

Add an attachment to the current object. It returns a deferred object

deleteAttachment(deleteIssueAttachment(Object attachment): Deletes the specified attachment from the current issue object in local cache & db and returns a deferred object

downloadIssueAttachment(Object attachment): Download the specified attachment

hideAttachmentPreview(): Hides the attachment preview of DOM object(div)

addAttachment(Object form_data): Add an attachment to the current object. It returns a deferred object

findAll(String object_id): Loads object attachments from local db or make AJAX request to server and returns a deferred object


Here is a list of Ember action helper methods which could be called from template or with sendAction() method

 

createAttachment(): Create a new attachment object

 

showNewAttachment(): Show DOM element for new attachment creation

 

cancelNewAttachment(): Cancels the new attachment creation mode

 

deleteIssueAttachmentdeleteAttachment(Object attachment): Deletes the specified attachment from the current object in local cache & db and returns a deferred objectfindAll(String object_id): Loads object attachments from local db or make AJAX request to server and returns a deferred objectissue object

 

downloadIssueAttachment(Object attachment): Download the specified attachment

 

hideAttachmentPreview(): Hides the attachment preview of DOM object(div)

Card
labelTemplate & View
titleThe template that has to be loaded

Template: attachmentList.hbs

View: attachmentsListView

...

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

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

updateComment(Object comment): Updates the comment info from local db or make the AJAX request to the serverspecified comment.

 

Here is a list of Ember action helper methods which could be called from template or with sendAction() method

 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 commentaddComment(): Adds comment to the current object and returns a deferred objectupdateComment(Object comment): Updates the specified comment.

Card
labelTemplate & View
titleThe template that has to be loaded

Template: commentsList.hbs

View: commentsListView

...