docs: add section on row click in DataTable (#11694)

* docs: add section on row click in DataTable

* update subscriptions example
This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-03-03 18:08:06 +02:00
1 parent ab96ad3b82
commit 92514885e4
12 files changed
+10972 -10678

No files matched your search

@@ -58,7 +58,14 @@ export const useActiveOnScroll = ({
return []
}
return root?.querySelectorAll(querySelector)
const filteredHeadings: Element[] = []
root?.querySelectorAll(querySelector).forEach((heading) => {
if (heading.id) {
filteredHeadings.push(heading)
}
})
return filteredHeadings
}, [isBrowser, pathname, root, enable])
const setHeadingItems = useCallback(() => {
if (!enable) {