{"id":15366411,"url":"https://github.com/jasonboy/ly-table","last_synced_at":"2026-04-18T00:01:49.318Z","repository":{"id":143888210,"uuid":"48905972","full_name":"JasonBoy/ly-table","owner":"JasonBoy","description":"Simple Angular Table Directive","archived":false,"fork":false,"pushed_at":"2017-04-12T06:15:39.000Z","size":93,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-27T09:09:13.260Z","etag":null,"topics":["angular","data-table","directive","table","ui"],"latest_commit_sha":null,"homepage":"","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/JasonBoy.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":"2016-01-02T10:17:16.000Z","updated_at":"2023-03-04T06:05:22.000Z","dependencies_parsed_at":"2023-07-18T02:19:17.429Z","dependency_job_id":null,"html_url":"https://github.com/JasonBoy/ly-table","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"2182bbf851a42409ad69fa384f085400ccf78c43"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/JasonBoy/ly-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonBoy%2Fly-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonBoy%2Fly-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonBoy%2Fly-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonBoy%2Fly-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JasonBoy","download_url":"https://codeload.github.com/JasonBoy/ly-table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonBoy%2Fly-table/sbom","scorecard":{"id":71102,"data":{"date":"2025-08-11","repo":{"name":"github.com/JasonBoy/ly-table","commit":"2182bbf851a42409ad69fa384f085400ccf78c43"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/25 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":"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":"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":"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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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"}}]},"last_synced_at":"2025-08-15T03:49:58.911Z","repository_id":143888210,"created_at":"2025-08-15T03:49:58.911Z","updated_at":"2025-08-15T03:49:58.911Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31950891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"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":["angular","data-table","directive","table","ui"],"created_at":"2024-10-01T13:18:43.293Z","updated_at":"2026-04-18T00:01:49.289Z","avatar_url":"https://github.com/JasonBoy.png","language":"JavaScript","readme":"# ly-table\nSimple Angular Table Directive\n\nThis angular directive will create a html table based on the `data` and `columns` and other options.\nWe can pass html for every column, and with other angular directive, like `ng-click`,  \nyou can pass any function to the table to add more logic with $scope attached.\n\n\u003e WARN: This directive only displays table data without any pagination function, do it with other plugins or by yourself\n\n### Usage\n\n`npm install ly-table`  \nJust import 'angular.js' , 'angular-sanitize.js' and the `ly-table.js`,  \nor  \nfor commonjs env, just `require('ly-table')`,  \n`var app = angular.module('app', ['lyTable']);`\n\nSimple usage\n```\n  \u003cly-table data=\"data\" columns=\"columns\" auto-escape=\"false\" table-class=\"table-hover\"\u003e\u003c/ly-table\u003e\n```\n\n#### Directive options\n**data**: [Array] Array from $scope, just an array contains all the data,\n```javascript\n$scope.data = [\n  {\n    name: 'jason',\n    age: 10,\n    address: 'shanghai'\n  }\n]\n```\n**columns**: [Array],Array from $scope, define all the columns how to display and other logic need.\n```javascript\n$scope.columns = [\n  {\n    field: 'name', //which is key in 'data' of every row data object,\n    name: 'Age',\n    sortable:true, //if this column is sortable\n    sortBy:''  //sort by name..., if not provided, will sort by field\n    cssClass:'', //css in tbody td\n    headCssClass:'', // css in thead th\n    autoEscape: false, //auto escape the html in this td or not,\n    //if you need add other directive like ng-click in formatter,\n    //set it to false, default value is false\n    formatter:'', //string or function to call to gen the html in the td,\n    //which can compile the html with scope with the help of      \n    //[bindHtmlCompile](https://github.com/incuna/angular-bind-html-compile) directive, see demo\n  }\n];\n```\n**tableClass**: [String], add additional table css class  \n**autoEscape**: [String] true/false. default false, escape/unescape globally  \n\n###Events\n**postLinked**: callback after link function  \n**sorting**: listen on the event to be notified when user click the thead td,\nsort class `active`, `sortable` will be added to the `thead \u003e tr \u003e th \u003e span` element based on the sort status   \n  ```\n  $scope.$on('sorting', function(e, column) {\n    var by = column.sortBy;\n    var dir = column.sortDir; //1: desc, else asc\n  }\n  ```\n\n### Demo\nSee the demo in demo folder\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonboy%2Fly-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonboy%2Fly-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonboy%2Fly-table/lists"}