{"id":20771981,"url":"https://github.com/krescruz/datatable-inline","last_synced_at":"2026-05-17T19:35:16.117Z","repository":{"id":73716641,"uuid":"98690295","full_name":"krescruz/datatable-inline","owner":"krescruz","description":"Simple datatable plugin for edit row data inline","archived":false,"fork":false,"pushed_at":"2017-07-28T22:25:27.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-23T07:32:02.773Z","etag":null,"topics":["datatables-plugin","javascript"],"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/krescruz.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":"2017-07-28T21:40:07.000Z","updated_at":"2024-11-13T08:43:49.000Z","dependencies_parsed_at":"2023-07-09T13:15:50.951Z","dependency_job_id":null,"html_url":"https://github.com/krescruz/datatable-inline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/krescruz/datatable-inline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krescruz%2Fdatatable-inline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krescruz%2Fdatatable-inline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krescruz%2Fdatatable-inline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krescruz%2Fdatatable-inline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krescruz","download_url":"https://codeload.github.com/krescruz/datatable-inline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krescruz%2Fdatatable-inline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33151879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-plugin","javascript"],"created_at":"2024-11-17T12:18:28.368Z","updated_at":"2026-05-17T19:35:16.087Z","avatar_url":"https://github.com/krescruz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Datatable-inline simple inline editing\n\nSimple plugin datatable for https://datatables.net/\n\n## Installation\n\nIn a browser:\n```html\n\u003cscript src=\"datatable-inline.js\"\u003e\u003c/script\u003e\n```\n\n## Usage and config\n```js\nvar dataInline = window.DataTableInline;\nvar myDatatable = $('myTable').DataTable({ 'columns': getColumns() });\n\n// Config Datatable inline\ndataInline.setConfig({\n    'datatable': myDatatable,\n    'editCols': ['name', 'lastname']\n});\n\n// Define columns for your DataTable\nfunction getColumns() {\n    var columns = [\n        { 'data': 'id' },\n        { 'data': 'name', className: 'col-name' },\n        { 'data': 'lastname', className: 'col-lastname' }\n    ];\n    // Important Add buttons actions\n    columns.push(dataInline.getColumnAction());\n    return columns;\n}\n\n// Define you actions\nfunction onClickSave(event) {\n    dataInline.preSaveAction(event).then(function(data) {\n        console.log(\"Do something\", data);\n    });\n}\n\nfunction onClickDelete(event) {\n    dataInline.preDeleteAction(event).then(function(data) {\n        console.log(\"Do something\", data);\n    });\n}\n\n/**\n * Define events\n */\ndatatable.on('click', '.dt-inline-btn-edit', dataInline.editAction);\ndatatable.on('click', '.dt-inline-btn-save', onClickSave);\ndatatable.on('click', '.dt-inline-btn-delete', onClickDelete);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrescruz%2Fdatatable-inline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrescruz%2Fdatatable-inline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrescruz%2Fdatatable-inline/lists"}