{"id":15323728,"url":"https://github.com/mvrilo/pagingcontrol","last_synced_at":"2025-10-09T10:31:30.488Z","repository":{"id":23897721,"uuid":"27277432","full_name":"mvrilo/pagingcontrol","owner":"mvrilo","description":"Page Indicator Widget for ScrollableViews","archived":false,"fork":true,"pushed_at":"2015-12-15T19:25:27.000Z","size":3011,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T19:02:14.969Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"manumaticx/pagingcontrol","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mvrilo.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":"2014-11-28T18:05:33.000Z","updated_at":"2014-11-28T18:05:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mvrilo/pagingcontrol","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mvrilo/pagingcontrol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvrilo%2Fpagingcontrol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvrilo%2Fpagingcontrol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvrilo%2Fpagingcontrol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvrilo%2Fpagingcontrol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvrilo","download_url":"https://codeload.github.com/mvrilo/pagingcontrol/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvrilo%2Fpagingcontrol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001275,"owners_count":26083040,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-01T09:21:26.189Z","updated_at":"2025-10-09T10:31:30.104Z","avatar_url":"https://github.com/mvrilo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PagingControl [![gittio](http://img.shields.io/badge/gittio-0.4.3-00B4CC.svg)](http://gitt.io/component/de.manumaticx.pagingcontrol)\n\nAlloy Widget for a page indication on ScrollableViews.\n\n![](demo.gif)\n\n## Quick Start\n\n### Installation\n\nVia gittio:\n```\ngittio install de.manumaticx.pagingcontrol\n```\n\n### Usage\n\nHere's the complete example from the above gif:\n\n`index.xml`\n```xml\n\u003cAlloy\u003e\n  \u003cWindow class=\"container\" \u003e\n    \u003cWidget id=\"paging\" src=\"de.manumaticx.pagingcontrol\" onSelect=\"tabHandler\" /\u003e\n    \u003cScrollableView id=\"scrollableView\"\u003e\n      \u003cView title=\"Yellow\" backgroundColor=\"yellow\" /\u003e\n      \u003cView title=\"Orange\" backgroundColor=\"orange\" /\u003e\n      \u003cView title=\"Red\" backgroundColor=\"red\" /\u003e\n      \u003cView title=\"Purple\" backgroundColor=\"purple\" /\u003e\n      \u003cView title=\"Blue\" backgroundColor=\"blue\" /\u003e\n    \u003c/ScrollableView\u003e\n\t\u003c/Window\u003e\n\u003c/Alloy\u003e\n```\n`index.tss`\n```javascript\n\".container\" : {\n\tbackgroundColor: \"#fff\",\n\tlayout: \"vertical\"\n},\n\"#paging\" : {\n\ttop: 0,\n\tindicatorColor: \"#09c\",\n\ttabs: true,\n\tbackgroundColor : \"#cacaca\",\n\tfont : {\n\t    fontSize : 20,\n\t    fontWeight : 'bold'\n\t}\n}\n```\n`index.js`\n```javascript\nfunction tabHandler(e) {\n  console.log('selected tab ', e.tab);\n}\n$.paging.setScrollableView($.scrollableView);\n$.index.open();\n```\n\n## API\n\n#### Properties\n\n* `scrollableView` - reference the scrollableView\n* `indicatorColor` - Color of the indicator\n* `indicatorHeight` - Thickness the indicator\n* `tabs` (Boolean) - wether to use tabs or only the indicator\n* `tabWidth` - width of a tab\n  * if not passed, a default tabWidth of a quarter of the total with is used\n  * if `auto` is used, tabs will fit the width\n* `dividerColor` - Color of the divider between the tabs\n* `findScrollableView` - whether should widget is find scrollableView\n* `backgroundColor` - sets the tab's background color\n* `font` - font object for tab labels\n* `color` - color for the labels\n* `activeColor` - color for the active tab label\n\n#### Methods\n\n* `setScrollableView( )` - lets you set the scrollableView after creation\n* `cleanup( )` - call this to remove EventListeners\n\n#### Events\n\n* `select` - lets you know when a tab was pressed and which one was\n\n## License\n\n    The MIT License (MIT)\n\n    Copyright (c) 2014 Manuel Lehner\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n    THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvrilo%2Fpagingcontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvrilo%2Fpagingcontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvrilo%2Fpagingcontrol/lists"}