【发布时间】:2019-05-21 19:26:02
【问题描述】:
primng 中的 fullcalander 样式不起作用
我安装了primeng 7.1.3版和angular 7中的primicons,并尝试使用fullcalander,它只显示日历中的日子,没有任何样式和事件。
this is my app.ts code:
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styles: ['./app.component.css',"node_modules/primeicons/primeicons.css",
"node_modules/primeng/resources/themes/nova-light/theme.css",
"node_modules/primeng/resources/primeng.min.css"]
})
export class AppComponent implements OnInit {
title = 'Client';
events: any[];
options: any;
header: any;
ngOnInit() {
this.events= [
{
"title": "All Day Event",
"start": "2016-01-01"
},
{
"title": "Long Event",
"start": "2016-01-07",
"end": "2016-01-10"
},
{
"title": "Repeating Event",
"start": "2016-01-09T16:00:00"
},
{
"title": "Repeating Event",
"start": "2016-01-16T16:00:00"
},
{
"title": "Conference",
"start": "2016-01-11",
"end": "2016-01-13"
}
];
this.options = {
plugins: [dayGridPlugin, timeGridPlugin, interactionPlugin],
defaultDate: '2017-02-01',
header: {
left: 'prev,next',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: true
};
}
}
this is my app.html code:
<div class="content-section implementation">
<p-fullCalendar [events]="events" [options]="options"></p-fullCalendar>
</div>
我希望它显示 fullcalander 的样式:边框......以及事件。
【问题讨论】:
标签: angular fullcalendar primeng