{"id":19604585,"url":"https://github.com/long-woo/bootstrap-table","last_synced_at":"2025-02-26T16:19:26.968Z","repository":{"id":72892178,"uuid":"73790467","full_name":"long-woo/bootstrap-table","owner":"long-woo","description":"基于bootstrap样式编写的jquery table插件","archived":false,"fork":false,"pushed_at":"2017-04-18T02:23:17.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-09T08:41:28.117Z","etag":null,"topics":["bootstrap","bootstrap-jquery-table","bootstrap-table"],"latest_commit_sha":null,"homepage":null,"language":null,"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/long-woo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-15T08:01:06.000Z","updated_at":"2019-12-03T12:31:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee1236a9-94c6-419c-bfb4-ff4c241aa3d0","html_url":"https://github.com/long-woo/bootstrap-table","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/long-woo%2Fbootstrap-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long-woo%2Fbootstrap-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long-woo%2Fbootstrap-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long-woo%2Fbootstrap-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/long-woo","download_url":"https://codeload.github.com/long-woo/bootstrap-table/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240887773,"owners_count":19873539,"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","bootstrap-jquery-table","bootstrap-table"],"created_at":"2024-11-11T09:37:24.149Z","updated_at":"2025-02-26T16:19:26.941Z","avatar_url":"https://github.com/long-woo.png","language":null,"readme":"# bootstrap-table\n基于bootstrap样式编写的jquery table插件\n\n# 如何使用？\n1.在`body`元素里添加引用\n``` html\n\u003cscript src=\"/js/bootstrap-talbe.js\"\u003e\n```\n2.在`srcipt`元素里使用`table`函数\n``` js\n$(\"#table\").table({\n    url: '/', // 你的url地址\n    dataType: \"json\", // 目前版本仅支持json格式\n    pageIndex: 1, // 当前页码\n    pageCount: 10, // 每页显示的条数\n    pageAlign: \"right\", // 分页显示的位置“left、center（默认）、right”\n    isMultiSelect: true, // 是否支持checkbox，默认为false\n    params: [\n        { name: \"自定参数名\", value: \"自定义参数的值\" }\n    ],\n    colModel: [\n        {\n            display: \"测试列\", name: \"ProcessName\", width: 140, formatText: function (data) {\n                // 自定义列内容，存在 `formatText` 配置会忽略 `name`\n                var html = '\u003ca href=\"' + data.ApproveUrl + '\"  target=\"_blank\"\u003e' + data.ProcessName + '\u003c/a\u003e';\n                return html;\n            }\n        }\n    ],\n    onRowClick: function (row) {\n        console.log(row)\n    },\n    onSuccess: function (data) {\n        console.log(data);\n    }\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flong-woo%2Fbootstrap-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flong-woo%2Fbootstrap-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flong-woo%2Fbootstrap-table/lists"}