{"id":18478610,"url":"https://github.com/sunny-chung/composable-table","last_synced_at":"2025-04-06T16:10:38.429Z","repository":{"id":192176520,"uuid":"686216435","full_name":"sunny-chung/composable-table","owner":"sunny-chung","description":"A multiplatform Jetpack Compose library that provides a `@Composable` table with automatic layouts.","archived":false,"fork":false,"pushed_at":"2025-03-02T08:35:33.000Z","size":5023,"stargazers_count":122,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T15:07:34.238Z","etag":null,"topics":["android","android-library","compose-multiplatform-library","ios","jetpack-compose","linux","macos","wasm","windows"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/sunny-chung.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":"2023-09-02T04:06:41.000Z","updated_at":"2025-03-28T04:09:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"a663db38-baa8-4148-b109-855730f9b8d2","html_url":"https://github.com/sunny-chung/composable-table","commit_stats":null,"previous_names":["sunny-chung/composable-table"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny-chung%2Fcomposable-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny-chung%2Fcomposable-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny-chung%2Fcomposable-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny-chung%2Fcomposable-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunny-chung","download_url":"https://codeload.github.com/sunny-chung/composable-table/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509221,"owners_count":20950232,"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":["android","android-library","compose-multiplatform-library","ios","jetpack-compose","linux","macos","wasm","windows"],"created_at":"2024-11-06T12:10:48.296Z","updated_at":"2025-04-06T16:10:38.409Z","avatar_url":"https://github.com/sunny-chung.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Composable Table\n\n![Maven Central](https://img.shields.io/maven-central/v/io.github.sunny-chung/composable-table)\n\nA multiplaform Jetpack Compose library that provides a `@Composable` table\nwith automatic layouts.\n\n![Demo Video](media/composable-table-demo.gif)\n\n## Features\n- 2-dimension scrolling\n- Automatic cell width and height calculation using the largest one\n- Maximum cell width/height could be optionally specified \n- Allowing custom composable and action listeners (e.g. clickable) for each cell\n- Infinite table width and height\n- Sticky rows and columns\n- Straight-forward to use\n\n## What is NOT included\n- Lazy cells\n- Grid lines (have to be implemented by users themselves inside cells)\n\n## Supported Platforms\n- Android\n- Desktop (JVM - Windows/MacOS/Linux)\n- iOS\n- WASM (JS)\n\n## Setup\n\nFor multiplatform:\n```kotlin\nkotlin {\n    sourceSets {\n        commonMain.dependencies {\n            implementation(\"io.github.sunny-chung:composable-table:\u003cversion\u003e\")\n            \n            // ...\n```\n\nFor single platform:\n```kotlin\n    dependencies {\n        // ...\n        implementation(\"io.github.sunny-chung:composable-table:\u003cversion\u003e\")\n    }\n```\n\n## Usage\nBelow shows an example of minimal usage.\n```kotlin\n    Table(\n        rowCount = 100,\n        columnCount = 10\n    ) { rowIndex, columnIndex -\u003e\n        Text(\"($rowIndex, $columnIndex)\")\n    }\n```\n\nPlease read the [demo app](demo/multiplatform-app/shared/src/commonMain/kotlin/com/sunnychung/lib/android/composabletable/demo/ux/AppView.kt) for a practical usage example.\nThere is a demo app for each platform.\n\n## Migration notes\nSince v1.2.0, Composable Table moves to Maven Central to provide multiplatform support.\nDependency identifier is changed from `com.github.sunny-chung:composable-table` to\n`io.github.sunny-chung:composable-table`.\n\nUsers using old version can stay at v1.1.0 because no other change is introduced. You can upgrade to\nv1.2.0 by changing the dependency identifier and version name to enjoy multiplatform support.\n\n## Troubleshooting\n\nIf `maxCellWidthDp` or `maxCellHeightDp` is specified, please do not use `fillMaxXXX` modifiers\nin the root composable of cells, or the cell would occupy maximum size unconditionally.\nThis behaviour is [documented](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier#(androidx.compose.ui.Modifier).fillMaxWidth(kotlin.Float)) in the `fillMaxXXX` methods of the Compose Foundation library.\n\n## Contribution\nContributions are welcomed!\n\nPlease also raise an issue if you think a must-have feature is missing!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunny-chung%2Fcomposable-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunny-chung%2Fcomposable-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunny-chung%2Fcomposable-table/lists"}