{"id":15659622,"url":"https://github.com/rhanb/nativescript-fancy-calendar","last_synced_at":"2025-05-05T19:42:33.177Z","repository":{"id":57308521,"uuid":"87965464","full_name":"rhanb/nativescript-fancy-calendar","owner":"rhanb","description":"Fancy calendar for NativeScript :smile: :beers:","archived":false,"fork":false,"pushed_at":"2018-11-13T09:00:33.000Z","size":2069,"stargazers_count":21,"open_issues_count":6,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T23:11:06.456Z","etag":null,"topics":["android","angular","calendar","ios","javascript","nativescript","typescript"],"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/rhanb.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":"2017-04-11T18:15:39.000Z","updated_at":"2024-05-30T16:02:34.000Z","dependencies_parsed_at":"2022-09-13T04:32:37.097Z","dependency_job_id":null,"html_url":"https://github.com/rhanb/nativescript-fancy-calendar","commit_stats":null,"previous_names":["rhanbit/nativescript-fancy-calendar"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhanb%2Fnativescript-fancy-calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhanb%2Fnativescript-fancy-calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhanb%2Fnativescript-fancy-calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhanb%2Fnativescript-fancy-calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhanb","download_url":"https://codeload.github.com/rhanb/nativescript-fancy-calendar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252563901,"owners_count":21768543,"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","angular","calendar","ios","javascript","nativescript","typescript"],"created_at":"2024-10-03T13:17:51.962Z","updated_at":"2025-05-05T19:42:33.158Z","avatar_url":"https://github.com/rhanb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/nativescript-fancy-calendar.svg)](https://www.npmjs.com/package/nativescript-fancy-calendar)\n[![npm](https://img.shields.io/npm/dt/nativescript-fancy-calendar.svg?label=npm%20downloads)](https://www.npmjs.com/package/nativescript-fancy-calendar)\n\n## NativeScript Fancy Calendar\n\nNativeScript plugin for [iOS](https://github.com/WenchaoD/FSCalendar) and [Android](https://github.com/prolificinteractive/material-calendarview).\n\nThis plugin is not production ready, and there is still a lots of work to do on it. That's why I advise you to use the [nativescript-pro-ui](https://www.npmjs.com/package/nativescript-pro-ui) calendar which is supported by Telerik itself :beers:.\n\n\n### Screenshots\n\n\n  iOS    |  Android\n-------- | ---------\n![iOS](screenshots/sample_ios.png) | ![Android](screenshots/sample_android.png)\n\n\n\n### Install \n\n```bash\ntns plugin add nativescript-fancy-calendar\n```\n\n### Documentation\n\ncomponent.html\n```xml\n\u003cCalendar backgroundColor=\"#686B74\" row=\"1\" [settings]=\"settings\" [events]=\"events\" [appearance]=\"appearance\"\n        (dateSelected)=\"dateSelected($event)\" (monthChanged)=\"monthChanged($event)\" (loaded)=\"calendarLoaded($event)\"\u003e\n\u003c/Calendar\u003e\n```\n\ncomponent.ts\n``` typescript\nimport {\n    Calendar,\n    SELECTION_MODE, // Multiple or single\n    DISPLAY_MODE, // Week or month\n    CalendarEvent, // little dots \n    Appearance, // style customisation\n    SCROLL_ORIENTATION, // scroll orientation for iOS\n    CalendarSubtitle, // subtitles for iOS\n    Settings // Settings interface\n} from 'nativescript-fancy-calendar';\n\nregisterElement('Calendar', () =\u003e Calendar);\n\n@Component({\n    selector: \"ns-yourcomponent\",\n    templateUrl: \"yourcomponent.component.html\",\n})\nexport class YourComponent {\n    settings: any;\n    subtitles: CalendarSubtitle[];\n    events: CalendarEvent[];\n    public appearance: Appearance;\n    private _calendar: Calendar;\n    \n    public calendarLoaded(event) {\n         this.settings = \u003cSettings\u003e{\n            displayMode: DISPLAY_MODE.MONTH, \n            scrollOrientation: SCROLL_ORIENTATION.HORIZONTAL,\n            selectionMode: SELECTION_MODE.MULTIPLE,\n            firstWeekday: 3, // SUN: O, MON: 1, TUES: 2 etc..\n            maximumDate: nextMonth, // Can't go further than this date\n            minimumDate: lastMonth // can't go earlier than this date\n        };\n        this.appearance = \u003cAppearance\u003e{\n            weekdayTextColor: \"white\", //color of Tue, Wed, Thur.. (only iOS)\n            headerTitleColor: \"white\", //color of the current Month (only iOS)\n            eventColor: \"white\", // color of dots\n            selectionColor: \"#FF3366\", // color of the circle when a date is clicked\n            todayColor: \"#831733\", // the color of the current day\n            hasBorder: true, // remove border (only iOS)\n            todaySelectionColor: \"#FF3366\", // today color when seleted (only iOS)\n            borderRadius: 25 // border radius of the selection marker\n        };\n    }\n    \n    public dateSelected(event) {\n        console.log('date selected');\n    }\n\n\n    public monthChanged(event) {\n        console.log('month selected');\n    }\n}\n\n``` \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhanb%2Fnativescript-fancy-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhanb%2Fnativescript-fancy-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhanb%2Fnativescript-fancy-calendar/lists"}