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/helpers/wp-table-row-helpers.ts

21 lines
504 B

import {commonRowClassName} from '../builders/rows/single-row-builder';
/**
* Return the row html id attribute for the given work package ID.
*/
export function rowId(workPackageId:string):string {
return `wp-row-${workPackageId}`;
}
export function rowClass(workPackageId:string):string {
return `${commonRowClassName}-${workPackageId}`;
}
/**
* Locate the row by its work package ID.
*/
export function locateRow(id:string):HTMLElement|null {
return document.getElementById(rowId(id));
}