{"id":23787728,"url":"https://github.com/andrejgajdos/nested-datatables","last_synced_at":"2025-09-06T05:32:10.527Z","repository":{"id":23136589,"uuid":"98232742","full_name":"AndrejGajdos/nested-datatables","owner":"AndrejGajdos","description":"jQuery DataTables plugin for rendering nested DataTables in rows. Inner tables are independent of the data and layout from the outer table.","archived":false,"fork":false,"pushed_at":"2024-03-01T11:34:09.000Z","size":1594,"stargazers_count":34,"open_issues_count":10,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-31T13:36:04.136Z","etag":null,"topics":["datatables","hierarchy","innersource","javascript","jquery","nested-objects","nested-structures"],"latest_commit_sha":null,"homepage":"https://andrejgajdos.github.io/nested-datatables/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndrejGajdos.png","metadata":{"files":{"readme":"README.html","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-07-24T20:36:07.000Z","updated_at":"2025-06-03T10:36:46.000Z","dependencies_parsed_at":"2024-03-01T12:45:54.944Z","dependency_job_id":null,"html_url":"https://github.com/AndrejGajdos/nested-datatables","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrejGajdos/nested-datatables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrejGajdos%2Fnested-datatables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrejGajdos%2Fnested-datatables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrejGajdos%2Fnested-datatables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrejGajdos%2Fnested-datatables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrejGajdos","download_url":"https://codeload.github.com/AndrejGajdos/nested-datatables/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrejGajdos%2Fnested-datatables/sbom","scorecard":{"id":13602,"data":{"date":"2025-08-11","repo":{"name":"github.com/AndrejGajdos/nested-datatables","commit":"4c9b46c99b871e9472f4dec2c3d39c0f4d80d42d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 2/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"132 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-j6gc-792m-qgm2","Warn: Project is vulnerable to: GHSA-pj73-v5mw-pm9j","Warn: Project is vulnerable to: GHSA-jxhc-q857-3j6g","Warn: Project is vulnerable to: GHSA-48wp-p9qv-4j64","Warn: Project is vulnerable to: GHSA-4qw4-jpp4-8gvp","Warn: Project is vulnerable to: GHSA-636f-xm5j-pj9m","Warn: Project is vulnerable to: GHSA-7vh7-fw88-wj87","Warn: Project is vulnerable to: GHSA-fmx4-26r3-wxpf","Warn: Project is vulnerable to: GHSA-2gw2-8q9w-cw8p","Warn: Project is vulnerable to: GHSA-4xjh-m3qx-49wc","Warn: Project is vulnerable to: GHSA-52p9-v744-mwjj","Warn: Project is vulnerable to: GHSA-mqm2-cgpr-p4m6","Warn: Project is vulnerable to: GHSA-242x-7cm6-4w8j","Warn: Project is vulnerable to: GHSA-286v-pcf5-25rc","Warn: Project is vulnerable to: GHSA-2qc6-mcvw-92cw","Warn: Project is vulnerable to: GHSA-2rr5-8q37-2w7h","Warn: Project is vulnerable to: GHSA-353f-x4gh-cqq8","Warn: Project is vulnerable to: GHSA-4hm9-844j-jmxp","Warn: Project is vulnerable to: GHSA-59gp-qqm7-cw4j","Warn: Project is vulnerable to: GHSA-5w6v-399v-w3cc","Warn: Project is vulnerable to: GHSA-6qvp-r6r3-9p7h","Warn: Project is vulnerable to: GHSA-7553-jr98-vx47","Warn: Project is vulnerable to: GHSA-7rrm-v45f-jp64","Warn: Project is vulnerable to: GHSA-cf46-6xxh-pc75","Warn: Project is vulnerable to: GHSA-cgx6-hpwq-fhv5","Warn: Project is vulnerable to: GHSA-cr5j-953j-xw5p","Warn: Project is vulnerable to: GHSA-crjr-9rc5-ghw8","Warn: Project is vulnerable to: GHSA-fq42-c5rg-92c2","Warn: Project is vulnerable to: GHSA-gx8x-g87m-h5q6","Warn: Project is vulnerable to: GHSA-jc36-42cf-vqwj","Warn: Project is vulnerable to: GHSA-jw9f-hh49-cvp9","Warn: Project is vulnerable to: GHSA-mrxw-mxhj-p664","Warn: Project is vulnerable to: GHSA-pxvg-2qj5-37jq","Warn: Project is vulnerable to: GHSA-qxcg-xjjg-66mj","Warn: Project is vulnerable to: GHSA-r95h-9x8f-r3f7","Warn: Project is vulnerable to: GHSA-v4f8-2847-rwm7","Warn: Project is vulnerable to: GHSA-v6gp-9mmm-c6p5","Warn: Project is vulnerable to: GHSA-vmfx-gcfq-wvm2","Warn: Project is vulnerable to: GHSA-vr8q-g5c7-m54m","Warn: Project is vulnerable to: GHSA-vvfq-8hwr-qm4m","Warn: Project is vulnerable to: GHSA-x7rv-cr6v-4vm4","Warn: Project is vulnerable to: GHSA-xc9x-jj77-9p9j","Warn: Project is vulnerable to: GHSA-xh29-r2w5-wx8m","Warn: Project is vulnerable to: GHSA-xxx9-3xcr-gjj3","Warn: Project is vulnerable to: GHSA-5m2v-hc64-56h6","Warn: Project is vulnerable to: GHSA-vqcq-mrmw-mcmg","Warn: Project is vulnerable to: GHSA-5cm2-9h8c-rvfx","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-c6rq-rjc2-86v2","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-hr2v-3952-633q","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-xf7w-r453-m56c","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr","Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg","Warn: Project is vulnerable to: GHSA-6c3j-c64m-qhgq","Warn: Project is vulnerable to: GHSA-gxr4-xjj5-5px2","Warn: Project is vulnerable to: GHSA-jpcq-cgw6-v4j6","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-5947-m4fg-xhqg","Warn: Project is vulnerable to: GHSA-779f-wgxg-qr8f","Warn: Project is vulnerable to: GHSA-pp57-mqmh-44h7","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-wrvr-8mpx-r7pp","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-9v62-24cr-58cx","Warn: Project is vulnerable to: GHSA-r8f7-9pfq-mjmv","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-6g33-f262-xjp4","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-7mwh-4pqv-wmr8","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-h9rv-jmmf-4pgx","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-2m39-62fm-q8r3","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7","Warn: Project is vulnerable to: GHSA-j44m-qm6p-hp7m","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-g7q5-pjjr-gqvp","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-14T15:10:48.146Z","repository_id":23136589,"created_at":"2025-08-14T15:10:48.147Z","updated_at":"2025-08-14T15:10:48.147Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273859018,"owners_count":25180813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datatables","hierarchy","innersource","javascript","jquery","nested-objects","nested-structures"],"created_at":"2025-01-01T15:16:37.937Z","updated_at":"2025-09-06T05:32:10.050Z","avatar_url":"https://github.com/AndrejGajdos.png","language":"JavaScript","readme":"\u003c!DOCTYPE html\u003e\n\u003chtml xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\"\u003e\n\u003chead\u003e\n\t\u003cmeta charset=\"utf-8\"/\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\n\u003ch1 id=\"nested-datatables\"\u003eNested-datatables\u003c/h1\u003e\n\n\u003cp\u003ejQuery DataTables plugin for rendering nested DataTables in rows. Inner tables are independent of the data and layout from the outer table.\u003c/p\u003e\n\n\u003ch3 id=\"demohttps:andrejgajdos.github.ionested-datatables\"\u003e\u003ca href=\"https://andrejgajdos.github.io/nested-datatables/\"\u003eDemo\u003c/a\u003e\u003c/h3\u003e\n\n\u003ch3 id=\"jsfiddlehttps:jsfiddle.netandrej_gajdoszu11wk2o37\"\u003e\u003ca href=\"https://jsfiddle.net/andrej_gajdos/zu11wk2o/37/\"\u003eJSFiddle\u003c/a\u003e\u003c/h3\u003e\n\n\u003ch2 id=\"installation\"\u003eInstallation\u003c/h2\u003e\n\n\u003cp\u003eDownload the \u003ca href=\"https://github.com/AndrejGajdos/nested-datatables/archive/master.zip\"\u003elatest version\u003c/a\u003e and include \u003ca href=\"https://github.com/AndrejGajdos/nested-datatables/blob/master/dist/nested.datatables.js\"\u003enested.datatables.min.js\u003c/a\u003e file\u003c/p\u003e\n\n\u003ch3 id=\"npm\"\u003eNPM\u003c/h3\u003e\n\n\u003cpre\u003e\u003ccode\u003e$ npm install nested-datatables\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003ch3 id=\"usage\"\u003eUsage\u003c/h3\u003e\n\n\u003cpre\u003e\u003ccode class=\"js\"\u003evar table = new nestedTables.TableHierarchy('example', data, settings);\ntable.initializeTableHierarchy();\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003ch2 id=\"methods\"\u003eMethods\u003c/h2\u003e\n\n\u003ch3 id=\"tablehierarchywrapperiddatasettings\"\u003eTableHierarchy(wrapperID, data, settings)\u003c/h3\u003e\n\n\u003cp\u003eMain NestedTables constructor.\u003c/p\u003e\n\n\u003ch4 id=\"wrapperid\"\u003ewrapperID\u003c/h4\u003e\n\n\u003cp\u003eType: \u003ccode\u003eString\u003c/code\u003e\u003c/p\u003e\n\n\u003cp\u003eID of a DOM element where will be table hierarchy rendered.\u003c/p\u003e\n\n\u003ch4 id=\"data\"\u003edata\u003c/h4\u003e\n\n\u003cp\u003eType: \u003ccode\u003eArray.\u0026lt;Object\u0026gt;\u003c/code\u003e\u003c/p\u003e\n\n\u003cp\u003eData used for building table hierarchy. Each item consists of property \u003ccode\u003edata\u003c/code\u003e and property \u003ccode\u003ekids\u003c/code\u003e, which represents array of child elements.\u003c/p\u003e\n\n\u003cp\u003eCheck examples below how to define json data.\u003c/p\u003e\n\n\u003ch4 id=\"settings\"\u003esettings\u003c/h4\u003e\n\n\u003cp\u003eType: \u003ccode\u003eObject\u003c/code\u003e\u003c/p\u003e\n\n\u003cp\u003eSettings for jQuery DataTables constructor.\u003c/p\u003e\n\n\u003ch3 id=\".initializetablehierarchy\"\u003e.initializeTableHierarchy()\u003c/h3\u003e\n\n\u003cp\u003eBuild nested table hierarchy.\u003c/p\u003e\n\n\u003ch2 id=\"events\"\u003eEvents\u003c/h2\u003e\n\n\u003ch4 id=\"onshowchildhierarchy\"\u003eonShowChildHierarchy\u003c/h4\u003e\n\n\u003cp\u003eTriggered when a child hierarchy is shown\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode class=\"js\"\u003e// '#example' is wrapper ID for table hierarchy\nvar tableEle = document.querySelector('#example .table');\ntableEle.addEventListener('onShowChildHierarchy', function(e) {\n  console.log(e);\n});\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003ch4 id=\"onhidechildhierarchy\"\u003eonHideChildHierarchy\u003c/h4\u003e\n\n\u003cp\u003eTriggered when a child hierarchy is hidden\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode class=\"js\"\u003e// '#example' is wrapper ID for table hierarchy\nvar tableEle = document.querySelector('#example .table');\ntableEle.addEventListener('onHideChildHierarchy', function(e) {\n  console.log(e);\n});\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003ch2 id=\"example\"\u003eExample\u003c/h2\u003e\n\n\u003cpre\u003e\u003ccode class=\"html\"\u003e\u0026lt;!DOCTYPE html\u0026gt;\n\u0026lt;html\u0026gt;\n  \u0026lt;head\u0026gt;\n    \u0026lt;meta charset=\u0026quot;UTF-8\u0026quot; /\u0026gt;\n\n    \u0026lt;script src=\u0026quot;./dist/nested.datatables.min.js\u0026quot;\u0026gt;\u0026lt;/script\u0026gt;\n  \u0026lt;/head\u0026gt;\n  \u0026lt;body\u0026gt;\n    \u0026lt;div id=\u0026quot;example\u0026quot; class=\u0026quot;container\u0026quot;\u0026gt;\u0026lt;/div\u0026gt;\n\n    \u0026lt;script\u0026gt;\n      var dataInJson = [\n        {\n          data: {\n            name: 'b1',\n            street: 's1',\n            city: 'c1',\n            departments: 10,\n            offices: 15\n          },\n          kids: [\n            {\n              data: {\n                department: 'HR',\n                supervisor: 'Isidor Bristol',\n                floor: 1,\n                employees: 15\n              },\n              kids: [\n                {\n                  data: {\n                    name: 'Klement Nikodemos',\n                    phone: '+938462',\n                    hire_date: 'January 1, 2010',\n                    id: 3456\n                  },\n                  kids: []\n                },\n                {\n                  data: {\n                    name: 'Madhava Helmuth',\n                    phone: '+348902',\n                    hire_date: 'May 23, 2002',\n                    id: 1234\n                  },\n                  kids: []\n                },\n                {\n                  data: {\n                    name: 'Andria Jesse',\n                    phone: '456123',\n                    hire_date: 'October 23, 2011',\n                    id: 9821\n                  },\n                  kids: []\n                }\n              ]\n            },\n            {\n              data: {\n                department: 'development',\n                supervisor: 'Jim Linwood',\n                floor: 2,\n                employees: 18\n              },\n              kids: [\n                {\n                  data: {\n                    name: 'Origenes Maxwell',\n                    phone: '345892',\n                    hire_date: 'February 1, 2004',\n                    id: 6234\n                  },\n                  kids: []\n                }\n              ]\n            },\n            {\n              data: {\n                department: 'testing',\n                supervisor: 'Zekeriya Seok',\n                floor: 4,\n                employees: 11\n              },\n              kids: []\n            }\n          ]\n        },\n        {\n          data: {\n            name: 'b2',\n            street: 's10',\n            city: 'c2',\n            departments: 3,\n            offices: 10\n          },\n          kids: [\n            {\n              data: {\n                department: 'development',\n                supervisor: 'Gallagher Howie',\n                floor: 8,\n                employees: 24\n              },\n              kids: [\n                {\n                  data: {\n                    name: 'Wat Dakota'\n                  },\n                  kids: []\n                }\n              ]\n            },\n            {\n              data: {\n                department: 'testing',\n                supervisor: 'Shirley Gayle',\n                floor: 4,\n                employees: 11\n              },\n              kids: []\n            }\n          ]\n        },\n        {\n          data: {\n            name: 'b3',\n            street: 's3',\n            city: 'c3',\n            departments: 2,\n            offices: 1\n          },\n          kids: [\n            {\n              data: {\n                department: 'development'\n              },\n              kids: [\n                {\n                  data: {\n                    name: 'Wat Dakota'\n                  },\n                  kids: []\n                }\n              ]\n            },\n            {}\n          ]\n        },\n\n        {\n          data: {\n            name: 'b4',\n            city: 'c4'\n          },\n          kids: []\n        }\n      ];\n\n      var settings = {\n        iDisplayLength: 20,\n        bLengthChange: false,\n        bFilter: false,\n        bSort: false,\n        bInfo: false\n      };\n\n      var table = new nestedTables.TableHierarchy(\n        'example',\n        dataInJson,\n        settings\n      );\n      table.initializeTableHierarchy();\n    \u0026lt;/script\u0026gt;\n  \u0026lt;/body\u0026gt;\n\u0026lt;/html\u0026gt;\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003ch2 id=\"example2\"\u003eExample 2\u003c/h2\u003e\n\n\u003cpre\u003e\u003ccode class=\"html\"\u003e\u0026lt;!DOCTYPE html\u0026gt;\n\u0026lt;html\u0026gt;\n  \u0026lt;head\u0026gt;\n    \u0026lt;meta charset=\u0026quot;UTF-8\u0026quot; /\u0026gt;\n\n    \u0026lt;script src=\u0026quot;./dist/nested.datatables.min.js\u0026quot;\u0026gt;\u0026lt;/script\u0026gt;\n  \u0026lt;/head\u0026gt;\n  \u0026lt;body\u0026gt;\n    \u0026lt;div id=\u0026quot;example\u0026quot; class=\u0026quot;container\u0026quot;\u0026gt;\u0026lt;/div\u0026gt;\n\n    \u0026lt;script\u0026gt;\n      var dataInJson2 = [\n        {\n          data: {\n            date: '2018-08'\n          },\n          kids: [\n            {\n              data: {\n                ' ':\n                  '\u0026amp;lt;input type=\u0026quot;checkbox\u0026quot; name=\u0026quot;exampleCheckbox\u0026quot; value=\u0026quot;exampleCheckbox\u0026quot;\u0026amp;gt;',\n                img:\n                  '\u0026amp;lt;img src=https:\\/\\/picsum.photos\\/100\\/100 width=20 \\/\u0026amp;gt;',\n                like: {\n                  value: 47,\n                  cellClass: 'likeCell',\n                  headerClass: 'likeHeader'\n                },\n                perf: { value: 130.55555555555554, cellClass: 'perf' },\n                date: '2018-08-30'\n              },\n              kids: []\n            },\n            {\n              data: {\n                ' ':\n                  '\u0026amp;lt;input type=\u0026quot;checkbox\u0026quot; name=\u0026quot;exampleCheckbox2\u0026quot; value=\u0026quot;exampleCheckbox2\u0026quot;\u0026amp;gt;',\n                img:\n                  '\u0026amp;lt;img src=https:\\/\\/picsum.photos\\/100\\/100 width=20 \\/\u0026amp;gt;',\n                like: 24,\n                perf: 66.66666666666667,\n                date: '2018-08-31'\n              },\n              kids: []\n            }\n          ]\n        }\n      ];\n\n      var settings = {\n        iDisplayLength: 20,\n        bLengthChange: false,\n        bFilter: false,\n        bSort: false,\n        bInfo: false\n      };\n\n      var table = new nestedTables.TableHierarchy(\n        'example',\n        dataInJson,\n        settings\n      );\n      table.initializeTableHierarchy();\n    \u0026lt;/script\u0026gt;\n  \u0026lt;/body\u0026gt;\n\u0026lt;/html\u0026gt;\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003ch2 id=\"license\"\u003eLicense\u003c/h2\u003e\n\n\u003cp\u003eMIT © \u003ca href=\"http://andrejgajdos.com\"\u003eAndrej Gajdos\u003c/a\u003e\u003c/p\u003e\n\n\u003c/body\u003e\n\u003c/html\u003e\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrejgajdos%2Fnested-datatables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrejgajdos%2Fnested-datatables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrejgajdos%2Fnested-datatables/lists"}