{"id":21903894,"url":"https://github.com/hansemannn/titanium-calendar","last_synced_at":"2025-10-20T11:32:02.524Z","repository":{"id":45197014,"uuid":"159067008","full_name":"hansemannn/titanium-calendar","owner":"hansemannn","description":"An easy to use iOS modal calendar for selecting dates. Based on the awesome PDTSimpleCalendar library.","archived":false,"fork":false,"pushed_at":"2022-09-25T10:24:55.000Z","size":4168,"stargazers_count":15,"open_issues_count":3,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T01:12:30.396Z","etag":null,"topics":["calendar","javascript","native","titanium"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/hansemannn.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":"2018-11-25T19:32:48.000Z","updated_at":"2022-02-28T22:18:31.000Z","dependencies_parsed_at":"2023-01-18T17:35:28.894Z","dependency_job_id":null,"html_url":"https://github.com/hansemannn/titanium-calendar","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Ftitanium-calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Ftitanium-calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Ftitanium-calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Ftitanium-calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansemannn","download_url":"https://codeload.github.com/hansemannn/titanium-calendar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249152841,"owners_count":21221319,"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":["calendar","javascript","native","titanium"],"created_at":"2024-11-28T15:29:59.414Z","updated_at":"2025-10-20T11:32:02.459Z","avatar_url":"https://github.com/hansemannn.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Titanium Calendar\n\nAn easy to use iOS modal calendar for selecting dates. Based on the awesome [PDTSimpleCalendar](https://github.com/jivesoftware/PDTSimpleCalendar) library.\n\n\u003cimg src=\"./screenshot.png\" height=\"400\" /\u003e\n\n## Features\n\n1. Show the calendar modally\n2. Show the calendar in a view of your desire\n\n## Examples\n\n###  Calendar Dialog (modally)\n\n```js\nvar TiCalendar = require('ti.calendar');\n\nvar win = Ti.UI.createWindow({\n  backgroundColor: '#fff'\n});\n\nvar button = Ti.UI.createButton({\n  title: 'Show calendar'\n});\n\nwin.add(button);\n\nconst calendar = TiCalendar.createCalendar({\n  // All optional\n  title: L('Select Date', 'Select Date'),\n  value: new Date(),\n  circleBackgroundColor: '#fff',\n  circleSelectedBackgroundColor: '#f00',\n  textColor: '#000',\n  textSelectedColor: '#fff',\n  todayTextColor: '#333',\n  todayCircleBackgroundColor: '#dbdbdb'\n});\n\ncalendar.addEventListener('change', function() {\n  calendar.hide();\n});\n\nbutton.addEventListener('click', function() {\n  calendar.show();\n});\n\nwin.open();\n```\n\n### Calendar View\n\n```js\nvar TiCalendar = require('ti.calendar');\n\nvar selectedDate = new Date();\n\nvar win = Ti.UI.createWindow({\n  title: 'Select Date',\n  backgroundColor: '#fff'\n});\n\nvar button = Ti.UI.createButton({\n  title: 'Show calendar'\n});\n\nwin.add(button);\n\nbutton.addEventListener('click', function() {\n  const calendar = TiCalendar.createCalendarView({\n    title: 'Select Date',\n    value: selectedDate,\n    circleBackgroundColor: '#fff',\n    circleSelectedBackgroundColor: '#f00',\n    textColor: '#000',\n    textSelectedColor: '#fff',\n    todayTextColor: '#333',\n    todayCircleBackgroundColor: '#dbdbdb'\n  });\n\n  calendar.addEventListener('change', function(e) {\n    Ti.API.warn('Selected date: ' + e.date);\n    selectedDate = e.date;\n  });\n\n  var win2 = Ti.UI.createWindow({\n    title: 'Select Date',\n    backgroundColor: '#fff'\n  });\n\n  win2.add(calendar);\n\n  nav.openWindow(win2);\n});\n\nvar nav = Ti.UI.iOS.createNavigationWindow({\n  window: win\n});\n\nnav.open();\n```\n\n## License\n\nMIT\n\n## Author\n\nHans Knöchel\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2Ftitanium-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansemannn%2Ftitanium-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2Ftitanium-calendar/lists"}