🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

ng-qcalendar

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-qcalendar

> `npm install ng-qcalendar`

latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

QCalendar

npm install ng-qcalendar

Example

import { Component } from "@angular/core";
import { CalendarEvent } from "ng-qcalendar";

@Component({
    selector: "calendar-example",
    template: `
        <QCalendar 
            [events]="events" 
            (onRender)="onRender($event)" 
            (onClick)="onClick($event)"> </QCalendar>`
})
export class CalendarExample {

    events: CalendarEvent[] = [
        { title: "Event 1", start: new Date(), reference: 1 },
        { title: "Event 2", start: new Date(), reference: 2 },
        { title: "Event 3", start: new Date(), reference: 3 },
    ];

    onRender(date: Date) {
        this.events = [];
        this.events = [
            { title: "Event 4", start: new Date(), reference: 2 },
            { title: "Event 5", start: new Date(), reference: 3 },
        ];
    }

    onClick(event: CalendarEvent) {
        console.log(event.reference);
    }
}

FAQs

Package last updated on 27 Sep 2016

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