Add row selection, bulk delete, row numbers and page size picker to tables; redesign person profile header
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -132,6 +132,10 @@ function syncLabels(el: HTMLElement, key: string) {
|
||||
if (!(el instanceof HTMLTableElement)) return;
|
||||
el.dataset.tc = key;
|
||||
const labels = readHeaderLabels(el);
|
||||
const wantsRowNum = !labels.includes('#') && !el.hasAttribute('data-no-rownum');
|
||||
if (wantsRowNum !== el.hasAttribute('data-rownum')) {
|
||||
el.toggleAttribute('data-rownum', wantsRowNum);
|
||||
}
|
||||
const prev = labelsByTable[key];
|
||||
if (!prev || prev.length !== labels.length || prev.some((v, i) => v !== labels[i])) {
|
||||
labelsByTable[key] = labels;
|
||||
|
||||
Reference in New Issue
Block a user