{"id":17457920,"url":"https://github.com/royling/jquery.datatables.treetable","last_synced_at":"2025-09-20T23:32:22.981Z","repository":{"id":147183866,"uuid":"7159476","full_name":"royling/jquery.dataTables.TreeTable","owner":"royling","description":"Integrate jquery.treeTable into jquery.dataTables","archived":false,"fork":false,"pushed_at":"2017-06-13T08:19:35.000Z","size":6,"stargazers_count":28,"open_issues_count":1,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-18T05:58:08.376Z","etag":null,"topics":["datatables","jquery","treetable"],"latest_commit_sha":null,"homepage":null,"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/royling.png","metadata":{"files":{"readme":"README.md","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,"publiccode":null,"codemeta":null}},"created_at":"2012-12-14T03:29:37.000Z","updated_at":"2023-08-13T01:14:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"3aa082f0-0067-4181-bff1-752e01963e8b","html_url":"https://github.com/royling/jquery.dataTables.TreeTable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royling%2Fjquery.dataTables.TreeTable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royling%2Fjquery.dataTables.TreeTable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royling%2Fjquery.dataTables.TreeTable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royling%2Fjquery.dataTables.TreeTable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/royling","download_url":"https://codeload.github.com/royling/jquery.dataTables.TreeTable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233694815,"owners_count":18715507,"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","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","jquery","treetable"],"created_at":"2024-10-18T03:24:18.203Z","updated_at":"2025-09-20T23:32:17.735Z","avatar_url":"https://github.com/royling.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"jquery.dataTables.TreeTable\n===========================\n\nThis is a plugin of [jquery.dataTables](http://datatables.net) to integrate [jquery.treeTable v2.x](https://github.com/ludo/jquery-treetable/tree/2.3.1). **Not working with the latest jquery-treetable plugin**\n\nIf you are still interested, I did create a live example [here](https://jsfiddle.net/royling/zg9q6sjd/), hope this makes things clear.\n\nTo use this plugin, check out the first 2 points and make use of the APIs in point 3:\n* Add the feature char `'T'` into `\"sDom\"` property in the initial settings of jquery.dataTables.\n* Specify initial settings for jquery.treeTable integrated, which is `\"oTreeTable\"` property in the initial settings of jquery.dataTables.\nFor example:\n\n```javascript\n    $('#example').dataTable({\n        \"sDom\": \"Ttfr\",\n        \"oTreeTable\": {\n            \"fnPreInit\": function(nRow, aData, iDisplayIndex, iDisplayIndexFull) {\n            // This function will be registerd as \"aoRowCallback\" of jquery.dataTables,\n            //  thus it has the same signature as \"fnRowCallback\".\n            // Specify \"id\" \u0026 \"class\" attributes for each row (TR) required by jquery.treeTable:\n            //   for parent rows, add class 'parent';\n            //   for children rows, add a class with name of prefix - 'child-of-' and parent id\n            },\n            \"showExpander\": true,\n            // The other settings to override the default options of jquery.treeTable, e.g. childPrefix, etc.\n        },\n        // The other settings of jquery.dataTables here...\n    });\n```\n\n* Few APIs (extending jquery.dataTables) are also added to handle treeTable specifically, those are:\n  1. `isTreeTable()`\n  2. `fnReloadAjaxTreeTable(sNewSource, fnCallback, bStandingDraw)`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyling%2Fjquery.datatables.treetable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froyling%2Fjquery.datatables.treetable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyling%2Fjquery.datatables.treetable/lists"}