New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ng-calendar-plus

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-calendar-plus

## Development in Progress

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

NgCalendarPlusApp

Development in Progress

Work In Progress

Table of contents:

  • Installation
  • How it works
  • Usage
  • License

Installation

npm i ng-calendar-plus --save

How it works

just a calender for now and will update complate usage once i completed my development

Usage

Include theng-calendar-plus module in your application at any place. The recommended way is to add forRoot initialization in the main app module.

import { BrowserModule } from '@angular/platform-browser';
import { NgCalendarPlusModule } from 'ng-calendar-plus';

@NgModule({
    imports: [
        BrowserModule,
        NgCalendarPlusModule.forRoot()
    ],
    bootstrap: [AppComponent]
})
export class AppModule { }

Place this below code wherever you want to render the scheduler

<ar-ng-calendar-plus  (DayClick)="dayClick($event)"></ar-ng-calendar-plus>

Events Available

DayClick which will emit day clicked event

 events: CalenderEvent[] = [
    new CalenderEvent({
      event_name: 'test1',
      date: '2019-6-26'
    }),
    new CalenderEvent({
      event_name: 'test2',
      date: '2019-6-26'
    }),
    new CalenderEvent({
      event_name: 'test3',
      date: '2019-6-26'
    }),
    new CalenderEvent({
      event_name: 'test4',
      date: '2019-6-26'
    }),
    new CalenderEvent({
      event_name: 'test5',
      date: '2019-6-26'
    }),
    new CalenderEvent({
      event_name: 'test6',
      date: '2019-6-26'
    }),
    new CalenderEvent({
      event_name: 'test7',
      date: '2019-6-26'
    }),
    new CalenderEvent({
      event_name: 'test8',
      date: '2019-6-20'
    })
  ]

  constructor(private ngCalenderPlusService: NgCalendarPlusService) {
    this.ngCalenderPlusService.getCalenderEvent().subscribe((data: any) => {
      console.log('day clicked from service', data);
    });
  }

  dayClick(data) {
    console.log('day clicked from output emitter', data);
  }

  EventChange(data) {
    this.events = this.events.map((calenderEvent: CalenderEvent) => {
      if (calenderEvent.event_name === data.event.event_name
        && calenderEvent.date === data.event.date) {
        calenderEvent.date = data.newDate;
      }
      return calenderEvent;
    });
  }

License

Licensed under MIT

Keywords

angular

FAQs

Package last updated on 28 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts