tui.calendar icon indicating copy to clipboard operation
tui.calendar copied to clipboard

Add ability to set weekend days

Open abozanona opened this issue 6 years ago • 9 comments

Version: v1.12.11

Current Behavior

Current code sets first & last day in the week as weekend days function isWeekend

isWeekend: function(day) {
    return day === 0 || day === 6;
},

Wanted Behavior

It't be great if I can enter custom weekend days(Pass an array of numbers I want to mark as weekend).

abozanona avatar Feb 19 '20 13:02 abozanona

I think 'weekend' means Saturday and Sunday. Why do you need weekend customization?

Do you just want to mark different days of the week as weekends?

jungeun-cho avatar Feb 20 '20 02:02 jungeun-cho

In our system, Some countries weekend days are Saturday and Sunday, some other countries have Friday and Saturday as their weekend days and some countries only have Friday.

I could see that there's an option in the calendar to hide weekends, and that depends on isWeekend function.

I want to mark specific days as weekends, and hide them when narrowWeekend is true

abozanona avatar Feb 20 '20 04:02 abozanona

Ah! I undertand. TOAST UI Calendar 2.0 is expected to support this feature. :)

jungeun-cho avatar Feb 20 '20 06:02 jungeun-cho

Great! Do you know when will v2.0 approx. be released?

abozanona avatar Feb 20 '20 06:02 abozanona

@abozanona It will take long time. I'm rewriting this calendar with virtual dom. There are many features those are hard to explain briefly, so check this article.

dongsik-yoo avatar Feb 24 '20 02:02 dongsik-yoo

@abozanona I'll let you know if there is more specific release date.

dongsik-yoo avatar Feb 24 '20 02:02 dongsik-yoo

Would be great to have this feature as the application we are developing is to be used in a country where Friday and Saturday are considered as weekend.

pythiantech avatar Nov 05 '20 07:11 pythiantech

@jungeun-cho @dongsik-yoo now, are you support this feature or any way to off some days and hide some days?

luayjal avatar Aug 19 '22 12:08 luayjal

@luayjal We don't have any plan for those features.

adhrinae avatar Aug 21 '22 23:08 adhrinae