/** */ class ProjectFundingDocumentsView extends EICDomContent { DOMContentLoaded(options) { for(let model in options.models) this[model] = options.models[model]; this.components = ui.eicfy(this.el); this.project.documents(this.project.current.project.number) .then(this.fill.bind(this)) } fill(data) { let content = this.find('section'); for(let section of data) { content.append(ui.create(``)); let files = ui.create(`