{"id":22724267,"url":"https://github.com/niceue/nice-grid","last_synced_at":"2025-08-09T00:21:34.001Z","repository":{"id":145772536,"uuid":"11474202","full_name":"niceue/nice-grid","owner":"niceue","description":"jQuery grid plugin.","archived":false,"fork":false,"pushed_at":"2015-08-13T06:43:57.000Z","size":159,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T08:48:19.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/niceue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-17T11:16:00.000Z","updated_at":"2016-09-20T05:51:26.000Z","dependencies_parsed_at":"2023-04-03T11:02:51.000Z","dependency_job_id":null,"html_url":"https://github.com/niceue/nice-grid","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/niceue%2Fnice-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niceue%2Fnice-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niceue%2Fnice-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niceue%2Fnice-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niceue","download_url":"https://codeload.github.com/niceue/nice-grid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248758446,"owners_count":21156957,"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":[],"created_at":"2024-12-10T14:15:33.033Z","updated_at":"2025-04-13T17:52:02.484Z","avatar_url":"https://github.com/niceue.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Grid\nA data table jQuery plugin.\n\n\n### Usage\nInclude resources:\n``` html\n\u003clink rel=\"stylesheet\" href=\"path/to/grid.css\"\u003e\n\u003cscript type=\"text/javascript\" src=\"path/to/grid.js\"\u003e\u003c/script\u003e\n```\n\nInitialization：\n``` html\n\u003cdiv id=\"data_grid\"\u003e\u003c/div\u003e\n```\n``` js\n$('#data_grid').grid({\n    dataSource: 'controner/action',\n    columns: [\n        {title: \"ID\", field: \"table_id\"},\n        {title: \"Name\", field: \"table_name\"},\n        {title: \"Contact\", field: \"table_contact\"},\n        {title: \"Action\", formatter: \"action\"}\n    ],\n    formatters: {\n        action: function(row){\n            return '\u003ca href=\"#\" fn=\"fEdit\"\u003eEdit\u003c/a\u003e';\n        }\n    },\n    fEdit: function(e, row){\n        e.preventDefault();\n        //do something..\n    }\n});\n```\n\nGet an instance:\n``` js\n$('#data_grid').data('grid');\n```\n\nRefresh a grid:\n``` js\n$('#data_grid').grid('refresh');\n```\n\nRefresh a grid width params:\n``` js\n$('#data_grid').grid({\n    //All support optionss\n});\n```\n\n\n### Documention\n[简体中文](http://niceue.com/nice-grid/)\n\n### Dependencies\n[jQuery 1.7+](http://jquery.com)\n\n### Browser Support\n  * IE6+\n  * Chrome\n  * Safari 4+\n  * Firefox 3.5+\n  * Opera\n\n\n### Bugs / Contributions\n- [Report a bug](https://github.com/niceue/nice-grid/issues)\n- To contribute or send an idea, github message me or fork the project\n\n\n### Build\nGrid use [UglifyJS2](https://github.com/mishoo/UglifyJS) \nyou should have installed [nodejs](nodejs.org) and run `npm install uglify-js -g`.\n\n  \n### License\nnice Grid is available under the terms of the [MIT License](http://niceue.com/licenses/MIT-LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniceue%2Fnice-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniceue%2Fnice-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniceue%2Fnice-grid/lists"}