Skip to content

Commit cebd873

Browse files
Merge pull request charliekassel#209 from kellymilligan/master
Add a flag to show the full month name in head
2 parents 6cf9f1e + 09cb9a2 commit cebd873

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Inline always open version
6464
| name | String | | Input name property |
6565
| id | String | | Input id |
6666
| format | String | dd MMM yyyy | Date formatting string |
67+
| full-month-name | Boolean | false | To show the full month name |
6768
| language | String | en | Translation for days and months |
6869
| disabled | Object | | See below for configuration |
6970
| placeholder | String | | Input placeholder text |

src/components/Datepicker.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ export default {
103103
value: String,
104104
default: 'en'
105105
},
106+
fullMonthName: {
107+
value: Boolean,
108+
default: false
109+
},
106110
disabled: {
107111
type: Object
108112
},
@@ -204,7 +208,7 @@ export default {
204208
},
205209
currMonthName () {
206210
const d = new Date(this.pageDate)
207-
return DateUtils.getMonthNameAbbr(d.getMonth(), this.translation.months.abbr)
211+
return DateUtils.getMonthNameAbbr(d.getMonth(), this.fullMonthName ? this.translation.months.original : this.translation.months.abbr)
208212
},
209213
currYear () {
210214
const d = new Date(this.pageDate)

0 commit comments

Comments
 (0)