OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/frontend/app/components/wp-fast-table/builders/modes/plain/plain-rows-builder.ts

28 lines
1001 B

import {Injector} from '@angular/core';
import {I18nToken} from 'core-app/angular4-transition-utils';
import {WorkPackageTable} from '../../../wp-fast-table';
import {PrimaryRenderPass} from '../../primary-render-pass';
import {SingleRowBuilder} from '../../rows/single-row-builder';
import {RowsBuilder} from '../rows-builder';
import {PlainRenderPass} from './plain-render-pass';
export class PlainRowsBuilder extends RowsBuilder {
// Injections
public I18n:op.I18n = this.injector.get(I18nToken);
protected rowBuilder:SingleRowBuilder;
// The group expansion state
constructor(public readonly injector:Injector, workPackageTable:WorkPackageTable) {
super(injector, workPackageTable);
this.rowBuilder = new SingleRowBuilder(injector, this.workPackageTable);
}
/**
* Rebuild the entire grouped tbody from the given table
*/
public buildRows():PrimaryRenderPass {
return new PlainRenderPass(this.injector, this.workPackageTable, this.rowBuilder).render();
}
}