{"id":18974658,"url":"https://github.com/pujiaxin33/jxexcel","last_synced_at":"2025-04-19T16:41:05.593Z","repository":{"id":56916675,"uuid":"209278815","full_name":"pujiaxin33/JXExcel","owner":"pujiaxin33","description":"一个轻量级的表视图","archived":false,"fork":false,"pushed_at":"2019-12-09T01:56:07.000Z","size":19,"stargazers_count":36,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T10:22:14.662Z","etag":null,"topics":["excel","table","tablelist"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/pujiaxin33.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}},"created_at":"2019-09-18T10:14:29.000Z","updated_at":"2024-05-23T02:59:01.000Z","dependencies_parsed_at":"2022-08-20T21:20:27.854Z","dependency_job_id":null,"html_url":"https://github.com/pujiaxin33/JXExcel","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pujiaxin33%2FJXExcel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pujiaxin33%2FJXExcel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pujiaxin33%2FJXExcel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pujiaxin33%2FJXExcel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pujiaxin33","download_url":"https://codeload.github.com/pujiaxin33/JXExcel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249223936,"owners_count":21232833,"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":["excel","table","tablelist"],"created_at":"2024-11-08T15:15:42.909Z","updated_at":"2025-04-16T09:34:03.806Z","avatar_url":"https://github.com/pujiaxin33.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JXExcel\n\nA lightweight table view，like Excel！\n\n# Preview\n\n![](https://github.com/pujiaxin33/JXExampleImages/blob/master/JXExcel/JXExcel.gif)\n\n# Requirements\n\n- iOS 9.0+\n- XCode 10.2.1+\n- Swift 5.0+\n\n# Install\n\n## CocoaPods\n\n```ruby\nTarget '\u003cYour Target Name\u003e' do\n     Pod 'JXExcel'\nEnd\n```\nExecute `pod repo update` first, then execute `pod install`\n\n# Usage\n\n## init `ExcelView`\n\n```Swift\n        excel = ExcelView(frame: CGRect.zero)\n        excel.dataSource = self\n        excel.delegate = self\n        view.addSubview(excel)\n```\n\n## implement `ExcelViewDataSource`\n```Swift\n    func numberOfRows(in excelView: ExcelView) -\u003e Int {\n        return 50\n    }\n\n    func numberOfColumns(in excelView: ExcelView) -\u003e Int {\n        return 10\n    }\n\n    func excelView(_ excelView: ExcelView, columnNameAt column: Int) -\u003e String {\n        return \"col:\\(column)\"\n    }\n\n    func excelView(_ excelView: ExcelView, rowDataAt row: Int) -\u003e [String] {\n        return dataSource[row]\n    }\n\n    func excelView(_ excelView: ExcelView, rowHeightAt row: Int) -\u003e CGFloat {\n        return 40\n    }\n\n    func excelView(_ excelView: ExcelView, columnWidthAt column: Int) -\u003e CGFloat {\n        return 120\n    }\n\n    func widthOfLeftHeader(in excelView: ExcelView) -\u003e CGFloat {\n        return 50\n    }\n\n    func heightOfTopHeader(in excelView: ExcelView) -\u003e CGFloat {\n        return 40\n    }\n```\n\n## implement `ExcelViewDelegate`\n\n```Swift\n    func excelView(_ excelView: ExcelView, didTapGridWith content: String) {\n        print(\"didTapGridWith:\\(content)\")\n    }\n\n    func excelView(_ excelView: ExcelView, didTapColumnHeaderWith name: String) {\n        print(\"didTapColumnHeaderWith:\\(name)\")\n    }\n```\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpujiaxin33%2Fjxexcel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpujiaxin33%2Fjxexcel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpujiaxin33%2Fjxexcel/lists"}