Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The official Angular component for FullCalendar

License

NotificationsYou must be signed in to change notification settings

fullcalendar/fullcalendar-angular

Repository files navigation

The officialAngular Component forFullCalendar

Installation

Install the Angular connector, the core package, and any plugins (likedaygrid):

npm install @fullcalendar/angular @fullcalendar/core @fullcalendar/daygrid

Usage

First, connectFullCalendarModule to your app module:

import{BrowserModule}from'@angular/platform-browser';import{NgModule}from'@angular/core';import{FullCalendarModule}from'@fullcalendar/angular';import{AppComponent}from'./app.component';@NgModule({declarations:[AppComponent],imports:[BrowserModule,FullCalendarModule// register FullCalendar with your app],providers:[],bootstrap:[AppComponent]})exportclassAppModule{}

Then, use thefull-calendar component, supplying anoptions object:

import{Component}from'@angular/core';import{CalendarOptions}from'@fullcalendar/core';importdayGridPluginfrom'@fullcalendar/daygrid';@Component({selector:'app-root',templateUrl:`    <div>      <h1>Demo App</h1>      <full-calendar [options]="calendarOptions"></full-calendar>    </div>  `,styleUrls:['./app.component.scss']})exportclassAppComponent{calendarOptions:CalendarOptions={plugins:[dayGridPlugin],initialView:'dayGridMonth',weekends:false,events:[{title:'Meeting',start:newDate()}]};}

You can even supply nested templates:

<full-calendar[options]="calendarOptions"><ng-template#eventContentlet-arg><b>{{arg.timeText}}</b><i>{{arg.event.title}}</i></ng-template></full-calendar>

Supported Angular Versions

@fullcalendar/angular version 6 supports Angular 12 - 18

Links

History

This project is built and maintained byirustm in partnership with the maintainers of FullCalendar. The project was originally calledng-fullcalendar which can still befound on NPM.

Development

You must install this repo withPNPM:

pnpm install

Available scripts (viapnpm run <script>):

  • build - build production-ready dist files
  • watch - build & watch development dist files
  • start - run a simple example application
  • test - test headlessly
  • test:dev - test interactively
  • clean

[8]ページ先頭

©2009-2025 Movatter.jp