{"id":29170228,"url":"https://github.com/mendixlabs/mendix-native-segmented-progressbar","last_synced_at":"2026-04-27T17:33:02.193Z","repository":{"id":74700025,"uuid":"452735353","full_name":"mendixlabs/mendix-native-segmented-progressbar","owner":"mendixlabs","description":"Show a segmented progressbar in your Mendix Native Mobile app","archived":false,"fork":false,"pushed_at":"2022-02-10T15:35:27.000Z","size":684,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T12:53:51.416Z","etag":null,"topics":["mendix","mendix-widget","progress-bar","react-native","typescript","widget"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mendixlabs.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,"zenodo":null}},"created_at":"2022-01-27T15:24:11.000Z","updated_at":"2022-02-20T11:28:02.000Z","dependencies_parsed_at":"2023-07-04T21:04:23.834Z","dependency_job_id":null,"html_url":"https://github.com/mendixlabs/mendix-native-segmented-progressbar","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mendixlabs/mendix-native-segmented-progressbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendixlabs%2Fmendix-native-segmented-progressbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendixlabs%2Fmendix-native-segmented-progressbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendixlabs%2Fmendix-native-segmented-progressbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendixlabs%2Fmendix-native-segmented-progressbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mendixlabs","download_url":"https://codeload.github.com/mendixlabs/mendix-native-segmented-progressbar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendixlabs%2Fmendix-native-segmented-progressbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32348048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"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":["mendix","mendix-widget","progress-bar","react-native","typescript","widget"],"created_at":"2025-07-01T12:39:28.803Z","updated_at":"2026-04-27T17:33:02.188Z","avatar_url":"https://github.com/mendixlabs.png","language":"TypeScript","readme":"[![Apache License](https://img.shields.io/badge/license-Apache%202.0-orange.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n[![Support](https://img.shields.io/badge/Support-Community%20(no%20active%20support)-orange.svg)](https://docs.mendix.com/developerportal/app-store/app-store-content-support)\n[![Studio](https://img.shields.io/badge/Studio%20version-9.0%2B-blue.svg)](https://appstore.home.mendix.com/link/modeler/)\n[![GitHub release](https://img.shields.io/github/release/JelteMX/mendix-native-segmented-progressbar)](https://github.com/JelteMX/mendix-native-segmented-progressbar/releases/latest)\n[![GitHub issues](https://img.shields.io/github/issues/JelteMX/mendix-native-segmented-progressbar)](https://github.com/JelteMX/mendix-native-segmented-progressbar/issues)\n\n# Mendix Native Segmented Progress Bar\n\n![AppStoreIcon](/assets/AppStoreIcon.png)\n\nShow a segmented progressbar in your Mendix Native Mobile app.\n\n\u003e Special thanks to [Kshitij Karandikar](https://developer.mendixcloud.com/link/profile/overview/249431) ([Github](https://github.com/mx-kshitij)) for providing the initial idea \u0026amp; version!\n\n## Features\n\n- Show a segmented progressbar with multiple segments\n- Render your progress bar horizontal or vertical\n- Can use a JSON String or Object List as Datasource\n- Styling can be customized by using standard Mendix Native Styling\n- On Click events for a segment\n\n## Usage\n\n### Data\n#### Scenario 1 : JSON\n\n- Use the **JSON Source** String to show a progress bar. This has to be a proper JSON array, where objects contain the following key-values:\n\n```javascript\n[\n    {\n        \"value\": 10         // this is the numeric value, used to determine the size (the widget calculates the total value and sizes accordingly)\n        \"color\": \"#FF0000\"  // HEX Color\n        \"sortOrder\": 0      // Determine the sorting\n    },\n...\n]\n```\n\n#### Scenario 2 : Objects\n\n- Define the dataSource of objects (for example from the Database)\n- **Value** \u0026 **Color** are both mandatory\n- **Sort** is optional. If you do not define this, it will use the order set by the dataSource\n\n### Events\n\n- When using Scenario 2 (Objects), you can define an onClick Action for a segment. The mendix object will be passed on as an input parameter.\n\n### UI\n\n- You can set the rendering of the progress bar to either horizontal or vertical.\n## Styling\n\nStyling is done in normal [Mendix Native Styling](https://docs.mendix.com/refguide/native-styling-refguide) procedures.\n\nClass: `com_mendixlabs_widget_native_segmentedprogressbar_SegmentedProgressBar`\n\nDefault styling:\n\n```js\nexport const com_mendixlabs_widget_native_segmentedprogressbar_SegmentedProgressBar = {\n    // ViewStyle properties for direction = \"horizontal\"\n    container: {\n        flexDirection: \"row\",   // We need this to render the bars horizontally\n        width: \"100%\"           // We set the width to the maximum of the container\n    },\n    containerVertical: {\n        flexDirection: \"column\",// We need this to render the bars vertically\n        height: \"100%\"          // We set the height to the maximum of the container\n    },\n    item: {                     // ViewStyle properties that control all segments\n        height: 20,             // Height of the progressbar (direction = \"horizontal\")\n        width: 20,              // Width of the progressbar (direction = \"vertical\")\n        borderRadius: 20        // Borderradius of first and last item\n    },\n    firstItem: {},              // ViewStyle properties for first segment (left when \"horizontal\", top when \"vertical\")\n    lastItem: {},               // ViewStyle properties for last segment (right when \"horizontal\", bottom when \"vertical\")\n    middleItem: {}              // ViewStyle properties for middle segments\n};\n```\n\n## Issues, suggestions and feature requests\n\n\u003e This widget is **NOT** officially supported by Mendix\n\nReport your issues on Github, see [here](https://github.com/JelteMX/mendix-native-segmented-progressbar/issues)\n\n## Development and contribution\n\n1. Install NPM package dependencies by using: `npm install`. If you use NPM v7.x.x, which can be checked by executing `npm -v`, execute: `npm install --legacy-peer-deps`.\n1. Run `npm start` to watch for code changes. On every change:\n    - the widget will be bundled;\n    - the bundle will be included in a `dist` folder in the root directory of the project;\n    - the bundle will be included in the `deployment` and `widgets` folder of the Mendix test project.\n\n## License\n\nApache 2\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendixlabs%2Fmendix-native-segmented-progressbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmendixlabs%2Fmendix-native-segmented-progressbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendixlabs%2Fmendix-native-segmented-progressbar/lists"}