{"id":20170258,"url":"https://github.com/marcodpt/table","last_synced_at":"2025-03-03T04:15:55.077Z","repository":{"id":111252810,"uuid":"380344590","full_name":"marcodpt/table","owner":"marcodpt","description":"A table component","archived":false,"fork":false,"pushed_at":"2022-04-04T20:11:18.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-13T15:27:15.317Z","etag":null,"topics":["bootstrap","bootstrap5","component","hyperapp","json-schema","table"],"latest_commit_sha":null,"homepage":"https://marcodpt.github.io/component/?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmarcodpt%2Ftable%2Fsample.js","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/marcodpt.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":"2021-06-25T20:13:13.000Z","updated_at":"2022-04-04T20:11:01.000Z","dependencies_parsed_at":"2023-04-23T17:31:04.954Z","dependency_job_id":null,"html_url":"https://github.com/marcodpt/table","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Ftable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Ftable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Ftable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Ftable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcodpt","download_url":"https://codeload.github.com/marcodpt/table/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241605820,"owners_count":19989612,"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":["bootstrap","bootstrap5","component","hyperapp","json-schema","table"],"created_at":"2024-11-14T01:18:02.687Z","updated_at":"2025-03-03T04:15:55.072Z","avatar_url":"https://github.com/marcodpt.png","language":"JavaScript","readme":"# table\n\u003e A table [component](https://github.com/marcodpt/component/)\n\n[Live demo](https://marcodpt.github.io/component/?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmarcodpt%2Ftable%2Fsample.js)\n\n[Tests](https://marcodpt.github.io/component/tests.html?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmarcodpt%2Ftable%2Ftests.js)\n\n## Params\n - object `schema`: json schema for the table, must be an array!\n - array `data` or function `data(params)`: the table data, can be an array\nor a function that recieve query params and returns an array (maybe inside\npromise).\n - function `totals(params|data)`: return an object (maybe inside promise) with\ntotals, if `data` is an array it will pass as paramenter `data`, otherwise\nquery `params`.\n - function `count(params)`: only use in case data is a function (and is a must \nif you want to use pagination), returns the number of rows for that given\nquery.\n - function `values(key)`: function that returns an array of objects (`value`,\n`label`) to be used in a select field representing the list of possible values\nfor a given `key`\n - array `operators`: An array of objects (`value`, `label`) to be used in a\nselect field representing filter operators.\n - function `back`: A back button function\n - boolean `check`: Is table rows checkable?\n - boolean `sort`: Is table columns sortable?\n - number|array `limit`: Pagination rows per page, in case of many items it can\nbe choosed by the user.\n - boolean `filter`: Is table filterable?\n - boolean `group`: Is table groupable?\n - boolean `search`: Is table searchable?\n - string `csv`: Csv file name for download\n - function `change(params)`: A function called every change on data\n   - object `params`: the current query params on data, described below\n - object `params`: the current query params on data, described below, use\n`null` if you want by default wait for an update call before display `data`\n\n## Update\n - object `params`: the current query params on data, properties:\n   - integer `_skip`: rows to be skiped \n   - integer `_limit`: limit number of rows\n   - string `_sort`: the column name to be sorted, use `-` at the beginning for\nDESC\n   - string `_group`: the columns to be grouped separated with `,`, or empty\nstring for full group\n   - array `_filter`: actives filters with items as string \n`key`+`operator`+`value`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcodpt%2Ftable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcodpt%2Ftable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcodpt%2Ftable/lists"}