Home Reference Source
import {NoteCommentService} from 'ceo-core/application/services/noteComment-service.js'
public class | source

NoteCommentService

Extends:

BaseService → NoteCommentService

Note comments are fetched from API and injected into the NoteViewer. Again, you shouldn't need to interactio with this component outside the NoteViewer.

Method Summary

Public Methods
public

create(id: *, data: *, callback: *): *

public

createAndFetch(id: *, data: *, callback: *): *

public

fetch(id: *, opts: *): *

public

updateComments(comments: *): *

Inherited Summary

From class BaseService
public

Preform a DELETE action

public

get(url: string, params: object): object

Preform a GET action

public

post(url: string, data: object, params: object): object

Preform a POST action

public

postUpload(url: string, data: object, params: object): object

Preform a POST action

public

put(url: string, data: object): object

Preform a PUT action

Public Methods

public create(id: *, data: *, callback: *): * source

Params:

NameTypeAttributeDescription
id *
data *
callback *

Return:

*

public createAndFetch(id: *, data: *, callback: *): * source

Params:

NameTypeAttributeDescription
id *
data *
callback *

Return:

*

public fetch(id: *, opts: *): * source

Params:

NameTypeAttributeDescription
id *
opts *

Return:

*

public updateComments(comments: *): * source

Params:

NameTypeAttributeDescription
comments *

Return:

*