Skip to content

نمایش روزهای تعطیل رسمی #72

Closed Answered by majidh1
navidsigarchi asked this question in Question
Discussion options

You must be logged in to vote

سلام با استفاده از کانفیگ زیر میتونید هر نوع تعطیلات رو تعریف کنید
dayRendering

این یک نمونه هست:
https://codepen.io/majidh1/pen/ZEMPxJY

jalaliDatepicker.startWatch({
  dayRendering:function(dayOptions,input){
    return {
     isHollyDay: dayOptions.month==1 && dayOptions.day<=4,
     // isValid = false, امکان غیر فعال کردن روز
     // className = "nowruz" امکان افزودن کلاس برای درج استایل به روز
    }
  }
})

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@navidsigarchi
Comment options

Answer selected by navidsigarchi
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants