File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ Inline always open version
119119| calendar-button | Boolean | false | Show an icon that that can be clicked |
120120| calendar-button-icon | String | | Use icon for button (ex: fa fa-calendar) |
121121| calendar-button-icon-content | String | | Use for material-icons (ex: event) |
122+ | day-cell-content | Function | | Use to render custom content in day cell |
122123| bootstrap-styling | Boolean | false | Output bootstrap styling classes |
123124| initial-view | String | minimumView | If set, open on that view |
124125| disabled | Boolean | false | If true, disable Datepicker on screen |
Original file line number Diff line number Diff line change 4545 :pageTimestamp =" pageTimestamp"
4646 :isRtl =" isRtl"
4747 :mondayFirst =" mondayFirst"
48+ :dayCellContent =" dayCellContent"
4849 @changedMonth =" setPageDate"
4950 @selectDate =" selectDate"
5051 @showMonthCalendar =" showMonthCalendar"
@@ -123,6 +124,7 @@ export default {
123124 return val === null || val instanceof Date || typeof val === ' string' || typeof val === ' number'
124125 }
125126 },
127+ dayCellContent: Function ,
126128 fullMonthName: Boolean ,
127129 disabledDates: Object ,
128130 highlighted: Object ,
Original file line number Diff line number Diff line change 2121 v-for =" day in days"
2222 :key =" day.timestamp"
2323 :class =" dayClasses(day)"
24- @click =" selectDate(day)" >{{ day.date }}</span >
24+ v-html =" dayCellContent(day)"
25+ @click =" selectDate(day)" ></span >
2526 </div >
2627 </div >
2728</template >
@@ -35,6 +36,10 @@ export default {
3536 pageTimestamp: Number ,
3637 fullMonthName: Boolean ,
3738 allowedToShowView: Function ,
39+ dayCellContent: {
40+ type: Function ,
41+ default : day => day .date ,
42+ },
3843 disabledDates: Object ,
3944 highlighted: Object ,
4045 calendarClass: [String , Object , Array ],
You can’t perform that action at this time.
0 commit comments