我需要以用户可以配置的 15 间隔显示小时数。
我尝试了下面的方式,但显示如下:
我需要以 15 或 30 分钟的间隔显示:15: 15 - 15:30 - 15:45
html组件:
<mwl-calendar-week-view [dayStartHour]="8" [dayStartMinute]="0" [precision]="'minutes'"
[hourSegments]="4" [dayEndHour]="18" [dayEndMinute]="0"
*ngSwitchCase="'week'" [excludeDays]="[0,6]" [viewDate]="viewDate"
(viewDateChange)="selectedDay = {date:$event}" [events]="events"
[refresh]="refresh" (dayClicked)="dayClicked($event.day)"
(eventClicked)="edit($event.event" (eventTimesChanged)="eventTimesChanged($event)">
</mwl-calendar-week-view>
scss:
.cal-week-view {
.cal-hour-segment.cal-after-hour-start .cal-time {
display: block;
}
}