fullcalendar/fullcalendar-angular
概要
FullCalendar 公式の Angular コンポーネント
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- -1
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルFullCalendar Angular Component
[!IMPORTANT] This repo shows FullCalendar v6. The current version is v7, which is developed in fullcalendar-workspace for now. This repo's code is lagging behind and will be updated.
In v7, plugins like dayGrid and timeGrid are no longer separate packages. Run
npm install @fullcalendar/angular fullcalendar temporal-polyfilland import plugins from@fullcalendar/angular/daygrid, etc. Don't install@fullcalendar/core,@fullcalendar/daygridor the other v6 packages with v7. See the v7 Angular docs.
The official Angular Component for FullCalendar
Installation
Install the Angular connector, the core package, and any plugins (like daygrid):
npm install @fullcalendar/angular @fullcalendar/core @fullcalendar/daygrid
Usage
First, connect FullCalendarModule 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]
})
export class AppModule { }
Then, use the full-calendar component, supplying an options object:
import { Component } from '@angular/core';
import { CalendarOptions } from '@fullcalendar/core';
import dayGridPlugin from '@fullcalendar/daygrid';
@Component({
selector: 'app-root',
templateUrl: `
<div>
<h1>Demo App</h1>
<full-calendar [options]="calendarOptions"></full-calendar>
</div>
`,
styleUrls: ['./app.component.scss']
})
export class AppComponent {
calendarOptions: CalendarOptions = {
plugins: [dayGridPlugin],
initialView: 'dayGridMonth',
weekends: false,
events: [
{ title: 'Meeting', start: new Date() }
]
};
}
You can even supply nested templates:
<full-calendar [options]="calendarOptions">
<ng-template #eventContent let-arg>
<b>{{arg.timeText}}</b>
<i>{{arg.event.title}}</i>
</ng-template>
</full-calendar>
Supported Angular Versions
@fullcalendar/angular version 6 supports Angular 12 - 22
Links
History
This project is built and maintained by irustm in partnership with the maintainers of FullCalendar. The project was originally called ng-fullcalendar which can still be found on NPM.
Development
You must install this repo with PNPM:
pnpm install
Available scripts (via pnpm run <script>):
build- build production-ready dist fileswatch- build & watch development dist filesstart- run a simple example applicationtest- test headlesslytest:dev- test interactivelyclean
関連プロジェクトを探す
読み込み中…