{"id":16529643,"url":"https://github.com/amir-arad/tweakpane-table","last_synced_at":"2025-09-25T19:06:16.843Z","repository":{"id":65846024,"uuid":"599044643","full_name":"amir-arad/tweakpane-table","owner":"amir-arad","description":"Table plugin for Tweakpane","archived":false,"fork":false,"pushed_at":"2024-05-26T17:09:41.000Z","size":48,"stargazers_count":14,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-14T15:45:49.924Z","etag":null,"topics":["creative-coding","gui","plugin","tweakpane","tweakpane-plugin","tweaks"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/amir-arad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-02-08T10:38:02.000Z","updated_at":"2025-08-10T16:46:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"df71f009-1e61-468d-867a-3dc8c0b8ef84","html_url":"https://github.com/amir-arad/tweakpane-table","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"b92ab68334a209f8a92af08895ac7b1eb66af1f5"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":"tweakpane/plugin-template","purl":"pkg:github/amir-arad/tweakpane-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amir-arad%2Ftweakpane-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amir-arad%2Ftweakpane-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amir-arad%2Ftweakpane-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amir-arad%2Ftweakpane-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amir-arad","download_url":"https://codeload.github.com/amir-arad/tweakpane-table/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amir-arad%2Ftweakpane-table/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276966322,"owners_count":25736758,"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-25T02:00:09.612Z","response_time":80,"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":["creative-coding","gui","plugin","tweakpane","tweakpane-plugin","tweaks"],"created_at":"2024-10-11T17:45:46.862Z","updated_at":"2025-09-25T19:06:16.788Z","avatar_url":"https://github.com/amir-arad.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tweakpane-table\n\n![tweakpane-table-demo](https://user-images.githubusercontent.com/6019373/218509852-643003ac-7092-4840-ab03-f919178588a2.png)\n\nTable plugin for [Tweakpane](https://github.com/cocopon/tweakpane/).\n\n## Installation\n\n### Browser\n\n```html\n\u003cstyle\u003e\n    /* size manipulation according to: https://github.com/cocopon/tweakpane/issues/46#issuecomment-633388907  */\n    .tableContainer {\n        width: 350px; /* give enough space for all cells */\n    }\n    .tableContainer .tp-lblv_v {\n        min-width: fit-content; /* don't cut off cells */\n    }\n\u003c/style\u003e\n\u003cscript src=\"tweakpane.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"tweakpane-table.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    const pane = new Tweakpane.Pane();\n    pane.element.parentElement.classList = 'tableContainer';\n    pane.registerPlugin(TweakpaneTablePlugin);\n\u003c/script\u003e\n```\n\n### Package\n\n```js\nimport { Pane } from 'tweakpane';\nimport * as TweakpaneTablePlugin from 'tweakpane-table';\nconst style = document.createElement('style');\nstyle.innerHTML = `\n    .tableContainer {\n        width: 350px;\n    }\n    .tableContainer .tp-lblv_v {\n        min-width: fit-content;\n    }\n`;\ndocument.head.appendChild(style);\nconst pane = new Pane();\npane.element.parentElement.classList = 'tableContainer';\npane.registerPlugin(TweakpaneTablePlugin);\n```\n\n## Usage\n\nHeaders are just labels, Cells are just blades.\n\n```js\n// add header row\npane.addBlade({\n    view: 'tableHead',\n    label: 'Label',\n    headers: [\n        { label: 'Text', width: '80px' },\n        { label: 'List', width: '160px' },\n    ],\n});\n\n// add cells row\npane.addBlade({\n    view: 'tableRow',\n    label: 'row 1',\n    cells: [\n        {\n            view: 'text',\n            width: '80px',\n            parse: (v) =\u003e String(v),\n            value: 'sketch-01',\n        },\n        {\n            view: 'list',\n            width: '160px',\n            options: [\n                { text: 'loading', value: 'LDG' },\n                { text: 'menu', value: 'MNU' },\n                { text: 'field', value: 'FLD' },\n            ],\n            value: 'LDG',\n        },\n    ],\n});\n```\n\n## Advanced Usage\n\nActually, every row is managed by a horizontal `Pane`.\nAccess the row pane using `.getPane()` to add inputs, monitors, buttons or blades. It is possible to add `width` property to all of them.\n\nHint: You can register other plugins to the row Pane!\n\n```js\nconst rowPane = pane\n    .addBlade({\n        view: 'tableRow',\n        label: `#1`,\n    })\n    .getPane(); // notice this! accessing the row pane\n\n// now just add stuff\nrowPane.registerPlugin(SomePlugin);\nconst PARAMS = {\n    speed: 0.5,\n};\nrowPane.addBlade({\n    view: 'text',\n    width: '100px',\n    parse: (v) =\u003e String(v),\n    value: `effect-0${i}`,\n});\npane.addInput(PARAMS, 'speed');\npane.addMonitor(PARAMS, 'speed', {\n    view: 'graph',\n    min: -1,\n    max: +1,\n});\nrowPane.addButton({\n    title: 'del',\n    width: '50px',\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famir-arad%2Ftweakpane-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famir-arad%2Ftweakpane-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famir-arad%2Ftweakpane-table/lists"}