Closed ManukMinasyan closed 2 years ago
Could be nice if there was the possibility to select multiple non continuous dates 🙂
@camilleb prop "marked-dates" you are lacking?
@ManukMinasyan it works when you already know the dates, but user can't select multiple date by clicking on the calendar. It could also be solved by adding a "clickedDay" event.
@camilleb thank you for your suggestion. Now everything is clear. I will do that)
Optionally display Week Numbers would be great!
Optionally display Week Numbers
Sure ) https://github.com/ManukMinasyan/vue-functional-calendar/projects/1#card-20648892
Being able to select time too. So hard to find good datetime pickers.
Being able to select time too. So hard to find good datetime pickers.
Sure) Thank you for you suggestion. https://github.com/ManukMinasyan/vue-functional-calendar/projects/1#card-21892094
With multiple calendars and date range picker you should change only one side when changing month so that you can see the other end of selection. If months are not continuous there should be visual sign in the middle of calendars.
Configurable shortcuts like 'This week', 'Last week', 'Last month'.
About localization (l10n), I understand that this library allows to pass dayNames
and monthNames
as a way change the locale. My concern is about avoid repeating this process. So, one suggestion is to allow to pass these props while install vue-functional-calendar, for example:
GlobalVue.use(plugin, options: {
dayNames: [/* ... */],
monthNames: [/* ... */]
});
What do you think?
About localization (l10n), I understand that this library allows to pass
dayNames
andmonthNames
as a way change the locale. My concern is about avoid repeating this process. So, one suggestion is to allow to pass these props while install vue-functional-calendar, for example:GlobalVue.use(plugin, options: { dayNames: [/* ... */], monthNames: [/* ... */] });
What do you think?
This is a good idea, in the next versions I will definitely do it.
How about making a named slot (let say under a day number) for additional info, icon etc.?
How about making a named slot (let say under a day number) for additional info, icon etc.?
I plan to do this on the next versions. ) Thank you.
Optionally display Week Numbers
Sure ) https://github.com/ManukMinasyan/vue-functional-calendar/projects/1#card-20648892
How can I enable week numbers?
Hi dear,
what do you think about the custom inputs (slot) using modal version?
First, this component looks really nice, Thank You for your work!
I'd like to suggest better themability, either by exposing few color variables (to easily be able to create for example themes or dark mode etc) or at least documenting what would be the best way to do it.
Hello dears, Thank you for your message, I planned to do it all on the next week, thanks :)
Hello dear developers, Already completed slots functionality. You can use the "week" and "day" props.
Thank you again for your support. ❤️
I can't work out how to set the inital date when using as a datepicker - could you explain how to do this please?
have set the dateFormat to dd-mm-yyyy but the datepicker still displays 9/8/2019 when you select a date - can/does the format affect how the date is displayed?
auto-apply and auto-close would be nice
I can't work out how to set the inital date when using as a datepicker - could you explain how to do this please?
If you need set start calendar date. You need use "newCurrentDate" prop.
dd-mm-yyyy
Please look at this example. https://codesandbox.io/s/980jov4m4p?fontsize=14&hidenavigation=1
auto-apply and auto-close would be nice
What do you mean about auto-apply and auto-close? What to do these functions and when?
Thanks.
Once you’ve selected the date range, allowing the calendar element to auto close, hiding it. I’m sure I can probably auto apply it from the model itself.
Is a single date select in date-range mode possible? I can see good use for that too.
@jaywilburn please look at this example. Did you want it? https://codesandbox.io/s/vuejs-functional-calendar-k1h1c
dd-mm-yyyy
Please look at this example. https://codesandbox.io/s/980jov4m4p?fontsize=14&hidenavigation=1
Thanks Manuk, I had a look at that, when I click the Change Date button the calendar goes blank - all days disappear.
What I wanted was a modal datepicker that shows the date in dd-mm-yyyy format - is there a way to do that please?
@jaywilburn please look at this example. Did you want it? https://codesandbox.io/s/vuejs-functional-calendar-k1h1c
Yes, thanks!
@jamesleonardleonard you need pass date argument like on the date format. Example:
:date-format="'mm-yyyy-dd'" chooseDate('08-2019-05');
:date-format="'yyyy/mm/dd'" chooseDate('2019/08/05');
Hello Manuk,
I try to using props disableDate but its not working, but if im trying to use disabledDayNames its working.
then if i want to use @click in slot or using styles :hover for class its not working too.
Thanks u
Hey dear @oghea , please check this example. Thanks. https://codesandbox.io/s/vuejs-functional-calendar-component-t9nlf
Is it possible to preset date with v-model? I can't make it work
Hey @garf . Now you can set the date using ChooseDate method only. You can add this code to your mounted or created method. And it will work.
this.$refs.Calendar.ChooseDate('2018-12-12');
Thanks.
@ManukMinasyan But it's not a date range, right?
@garf, yes, if you need to set the date range, you need to use the markedDateRange prop.
Just wanted to say thanks!
Currently it's not possible to select in a date range a single date. I think it should be allowed, as sometimes you want to select only one day range.
I'll try to prepare the pull request.
Thank you @garf :)
Hello Manuk, I try to use props 'markedDates' to display specific dates manually when I switch month page, however, I can not see any mark on these dates. Could you please help me out?
For example, I reset the markedDates array when I jump to October page from November
:marked-dates="markedDates"
and I init it as follow,
markedDates: [],
this.markedDates = [{ date: '1/10/2019', class: 'marked-class' }, { date: '12/10/2019', class: 'marked-class' }]
Hi @HaileyGermanotta . Please share your code.
<FunctionalCalendar
:date-format="'dd/mm/yyyy'"
:marked-dates="markedDates"
@changedMonth="changeMonth">
</FunctionalCalendar>
import { FunctionalCalendar } from 'vue-functional-calendar'
export default {
components: {
FunctionalCalendar
},
data() {
return {
markedDates: [],
}
},
methods: {
changeMonth(date) {
// ..... retrieve an array of dates from the server and set to markedDates
this.markedDates = ['1/11/2019', '2/11/2019']
}
}
}
but no marks on the calendar. Did I miss anything? Thank you!
@HaileyGermanotta you need to use the computed property for reactive props.
Example:
<FunctionalCalendar
:date-format="'dd/mm/yyyy'"
:marked-dates="reactiveMarkedDates"
@changedMonth="changeMonth">
</FunctionalCalendar>
import { FunctionalCalendar } from 'vue-functional-calendar'
export default {
components: {
FunctionalCalendar
},
data() {
return {
markedDates: [],
}
},
computed: {
reactiveMarkedDates() {
return this.markedDates;
}
}
methods: {
changeMonth(date) {
// ..... retrieve an array of dates from the server and set to markedDates
this.markedDates = ['1/11/2019', '2/11/2019']
}
}
}
Hey !
When using the range mode it would be cool to be able to disable range date, like :
{ start: '13-10-2019', end: '15-10-2019' }
Thx :)
@jfustier-it thank you for your suggestion. I will do that)
First, this component looks really nice, Thank You for your work!
I'd like to suggest better themability, either by exposing few color variables (to easily be able to create for example themes or dark mode etc) or at least documenting what would be the best way to do it.
This would definitely be useful. But until it's implemented, how can we change what colour selected day and current (today) day has? I'm thinking about uverriding some CSS classed, but which should I override exactly?
First, this component looks really nice, Thank You for your work! I'd like to suggest better themability, either by exposing few color variables (to easily be able to create for example themes or dark mode etc) or at least documenting what would be the best way to do it.
This would definitely be useful. But until it's implemented, how can we change what colour selected day and current (today) day has? I'm thinking about uverriding some CSS classed, but which should I override exactly?
We have a variables.scss file, you can see this file. And overwrite colors. Thanks
Please write your suggestions here. Thanks.