@rtdui/datatable
Version:
React DataTable component based on Rtdui components
22 lines (20 loc) • 636 B
JavaScript
'use client';
function shouldIgnoreSticky(header) {
const { column } = header;
if (header.id.includes(`_${column.id}_`)) {
const headerIds = header.id.split("_");
const a = headerIds.slice(0, headerIds.length - 1).join("_");
const b = header.headerGroup.headers.filter((d) => {
const c = d.id.split("_");
const e = c.slice(0, c.length - 1).join("_");
if (a === e)
return true;
return false;
});
if (b.length > 1 && b.findIndex((d) => d.id === header.id) > 0)
return true;
}
return false;
}
export { shouldIgnoreSticky };
//# sourceMappingURL=shouldIgnoreSticky.mjs.map