File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,19 @@ var state = {
224224 </script >
225225<datepicker :highlighted =" state.highlighted" ></datepicker >
226226```
227-
227+ ## Slots
228+
229+ Sometimes you need to show custom content before the header for the calendar.
230+ For such cases you can use the named slot 'beforeCalendarHeader.
231+ An example would be to use bootstrap's ` input-group-prepend ` and ` input-group-append `
232+ to show some custom text:
233+ ``` html
234+ <datepicker :bootstrap-styling =" true" >
235+ <div slot =" beforeCalendarHeader" class =" calender-header" >
236+ Choose a Date
237+ </div >
238+ </datepicker >
239+ ```
228240
229241## Translations
230242
Original file line number Diff line number Diff line change 1515 :bootstrapStyling =" true"
1616 :calendarButton =" true"
1717 :clearButton =" true"
18- ></datepicker >
18+ >
19+ </datepicker >
1920 <code >
2021 < ; datepicker placeholder="Select Date"> ;< ; /datepicker> ;
2122 </code >
Original file line number Diff line number Diff line change 2222 @showCalendar =" showCalendar"
2323 />
2424
25+
2526 <!-- Day View -->
2627 <picker-day
2728 v-if =" allowedToShowView('day')"
You can’t perform that action at this time.
0 commit comments