Skip to content

Commit 2dd5f20

Browse files
Fix slot documentation in README.md
1 parent 0a0cc7e commit 2dd5f20

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -226,16 +226,17 @@ var state = {
226226
```
227227
## Slots
228228

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>
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+
```
239240

240241
## Translations
241242

0 commit comments

Comments
 (0)