angular - Ionic2 日曆,如何自定義樣式?
日曆的 Github 倉庫: https://github.com/twinssbc/Ionic2-Calendar
使用 ionic2-calendar 指令如何自訂日曆上的事件顏色?有辦法做到嗎?另外,如何使用我自己的事件列表模板而不是原生的模板?
答案#1
好的,文件中有這個問題的答案,這是日曆底部事件詳情的範例模板。
<template #template let-showEventDetail="showEventDetail" let-selectedDate="selectedDate" let-noEventsLabel="noEventsLabel">
...
</template>
<calendar ... [monthviewEventDetailTemplate]="template"></calendar>
