Skip to content

Commit

Permalink
Add dynamics minDate && maxDate
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisMazel committed Sep 21, 2018
1 parent f5d9fa7 commit 2961408
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
:minute-interval="10"
color="#96bf31"
enable-button-validate
min-date="2018-04-03"
max-date="2018-04-12"
:min-date="minDate"
:max-date="maxDate"
/>
<br>
<textarea readonly tabindex="-1" style="height: 120px;">
Expand All @@ -26,8 +26,8 @@
:minute-interval="10"
color="#96bf31"
enable-button-validate
min-date="2018-04-03"
max-date="2018-04-12"
:min-date=" {{ minDate }} "
:max-date=" {{ maxDate }} "
/>
</textarea>

Expand All @@ -41,6 +41,7 @@
formatted="ddd D MMM YYYY"
v-model="value2"
label="Choose date"
disable-time
/>
<br>
<textarea readonly tabindex="-1" style="height: 110px;">
Expand Down Expand Up @@ -169,7 +170,9 @@ export default {
hint: 'Error message',
errorHint: true,
timeFormat: 'hh:mm a',
locale: 'fr'
locale: 'fr',
minDate: '2018-04-03',
maxDate: '2018-04-12'
}
}
}
Expand Down

0 comments on commit 2961408

Please sign in to comment.