#9 jsdoc comments for document list and related components

This commit is contained in:
Denys Vuika
2016-05-11 11:02:43 +01:00
parent 68abeb4b2b
commit 2f840c2ee3
18 changed files with 276 additions and 46 deletions

View File

@@ -24,12 +24,16 @@ import {ContentActionModel} from './../models/content-action.model';
template: ''
})
export class ContentActionList {
constructor(private documentList: DocumentList) {
// saves reference to parent container
// so that content children can access it
constructor(
private documentList: DocumentList) {
}
registerAction(action: ContentActionModel) {
/**
* Registers action handler within the parent document list component.
* @param action Action model to register.
*/
registerAction(action: ContentActionModel): void {
if (this.documentList && action) {
this.documentList.actions.push(action);
}