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

31 lines
958 B

import {RowsBuilder} from '../rows-builder';
import {WorkPackageTable} from '../../../wp-fast-table';
import {injectorBridge} from '../../../../angular/angular-injector-bridge.functions';
import {PrimaryRenderPass} from '../../primary-render-pass';
import {PlainRenderPass} from './plain-render-pass';
import {SingleRowBuilder} from '../../rows/single-row-builder';
export class PlainRowsBuilder extends RowsBuilder {
// Injections
public I18n:op.I18n;
protected rowBuilder:SingleRowBuilder;
// The group expansion state
constructor(workPackageTable:WorkPackageTable) {
super(workPackageTable);
injectorBridge(this);
this.rowBuilder = new SingleRowBuilder(this.workPackageTable);
}
/**
* Rebuild the entire grouped tbody from the given table
*/
public buildRows():PrimaryRenderPass {
return new PlainRenderPass(this.workPackageTable, this.rowBuilder).render();
}
}
PlainRowsBuilder.$inject = ['states', 'I18n'];