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

20 lines
460 B

/**
* Return the row html id attribute for the given work package ID.
*/
export function rowId(workPackageId):string {
return `wp-row-${workPackageId}`;
}
/**
* Locate the row by its work package ID.
*/
export function locateRow(id):HTMLElement|null {
return document.getElementById(rowId(id));
}
/**
* Get the row group class name for the given group id.
*/
export function groupedRowClassName(groupIndex) {
return `__row-group-${groupIndex}`
}