All Projects → rhanb → nativescript-fancy-calendar

rhanb / nativescript-fancy-calendar

Licence: other
Fancy calendar for NativeScript 😄 🍻

Programming Languages

typescript
32286 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to nativescript-fancy-calendar

Nativescript Google Maps Sdk
Cross Platform Google Maps SDK for Nativescript
Stars: ✭ 234 (+1014.29%)
Mutual labels:  nativescript
nativescript-imagepicker
Imagepicker plugin supporting both single and multiple selection.
Stars: ✭ 103 (+390.48%)
Mutual labels:  nativescript
nativescript-dev-typescript
TypeScript support for NativeScript projects
Stars: ✭ 20 (-4.76%)
Mutual labels:  nativescript
Rwa Trivia
Trivia App - Real World Angular series
Stars: ✭ 251 (+1095.24%)
Mutual labels:  nativescript
NativeScript-Status-Bar
A simple NativeScript plugin for controlling status bar visibility.
Stars: ✭ 15 (-28.57%)
Mutual labels:  nativescript
nativescript-swipe-layout
🎆
Stars: ✭ 21 (+0%)
Mutual labels:  nativescript
Nativescript Mapbox
🗽 🗼 🗻 Native OpenGL powered Maps, by Mapbox
Stars: ✭ 187 (+790.48%)
Mutual labels:  nativescript
texttospeech
Text to Speech NativeScript plugin for Android & iOS 📢
Stars: ✭ 44 (+109.52%)
Mutual labels:  nativescript
WhatsMyScore2-NativeScript
What's My Score App built with NativeScript + Angular 2 + TypeScript
Stars: ✭ 14 (-33.33%)
Mutual labels:  nativescript
nativescript-ng2-drawer-seed
Nativescript template project with drawer support
Stars: ✭ 17 (-19.05%)
Mutual labels:  nativescript
nativescript-datetimepicker
Plugin with date and time picking fields
Stars: ✭ 26 (+23.81%)
Mutual labels:  nativescript
nativescript-store-update
No description or website provided.
Stars: ✭ 18 (-14.29%)
Mutual labels:  nativescript
Sudoku
The classic game in its brand new, modern shape. Badges, points & leaderboards included.
Stars: ✭ 13 (-38.1%)
Mutual labels:  nativescript
React Nativescript
React renderer for NativeScript
Stars: ✭ 244 (+1061.9%)
Mutual labels:  nativescript
nativescript-ng-shadow
Angular directive to apply shadows to native elements according to the elevation level guidelines of material design specification
Stars: ✭ 54 (+157.14%)
Mutual labels:  nativescript
Angular Seed Advanced
Advanced Angular seed project with support for ngrx/store, ngrx/effects, ngx-translate, angulartics2, lodash, NativeScript (*native* mobile), Electron (Mac, Windows and Linux desktop) and more.
Stars: ✭ 2,279 (+10752.38%)
Mutual labels:  nativescript
nativescript-toolbox
A NativeScript module that is a composition of useful tools and helpers.
Stars: ✭ 54 (+157.14%)
Mutual labels:  nativescript
nativescript-menu
A plugin that adds a pop-up menu to NativeScript
Stars: ✭ 17 (-19.05%)
Mutual labels:  nativescript
nativescript-image-filters
NativeScript plugin to apply filters to images
Stars: ✭ 30 (+42.86%)
Mutual labels:  nativescript
nativescript-loading-indicator
NativeScript Loading Indicator plugin
Stars: ✭ 48 (+128.57%)
Mutual labels:  nativescript

npm npm

NativeScript Fancy Calendar

NativeScript plugin for iOS and Android.

This 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 calendar which is supported by Telerik itself 🍻.

Screenshots

iOS Android
iOS Android

Install

tns plugin add nativescript-fancy-calendar

Documentation

component.html

<Calendar backgroundColor="#686B74" row="1" [settings]="settings" [events]="events" [appearance]="appearance"
        (dateSelected)="dateSelected($event)" (monthChanged)="monthChanged($event)" (loaded)="calendarLoaded($event)">
</Calendar>

component.ts

import {
    Calendar,
    SELECTION_MODE, // Multiple or single
    DISPLAY_MODE, // Week or month
    CalendarEvent, // little dots 
    Appearance, // style customisation
    SCROLL_ORIENTATION, // scroll orientation for iOS
    CalendarSubtitle, // subtitles for iOS
    Settings // Settings interface
} from 'nativescript-fancy-calendar';

registerElement('Calendar', () => Calendar);

@Component({
    selector: "ns-yourcomponent",
    templateUrl: "yourcomponent.component.html",
})
export class YourComponent {
    settings: any;
    subtitles: CalendarSubtitle[];
    events: CalendarEvent[];
    public appearance: Appearance;
    private _calendar: Calendar;
    
    public calendarLoaded(event) {
         this.settings = <Settings>{
            displayMode: DISPLAY_MODE.MONTH, 
            scrollOrientation: SCROLL_ORIENTATION.HORIZONTAL,
            selectionMode: SELECTION_MODE.MULTIPLE,
            firstWeekday: 3, // SUN: O, MON: 1, TUES: 2 etc..
            maximumDate: nextMonth, // Can't go further than this date
            minimumDate: lastMonth // can't go earlier than this date
        };
        this.appearance = <Appearance>{
            weekdayTextColor: "white", //color of Tue, Wed, Thur.. (only iOS)
            headerTitleColor: "white", //color of the current Month (only iOS)
            eventColor: "white", // color of dots
            selectionColor: "#FF3366", // color of the circle when a date is clicked
            todayColor: "#831733", // the color of the current day
            hasBorder: true, // remove border (only iOS)
            todaySelectionColor: "#FF3366", // today color when seleted (only iOS)
            borderRadius: 25 // border radius of the selection marker
        };
    }
    
    public dateSelected(event) {
        console.log('date selected');
    }


    public monthChanged(event) {
        console.log('month selected');
    }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].