Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to set the date directly when calling the constructor and other minor improvements #42

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Sanshain
Copy link

@Sanshain Sanshain commented Oct 4, 2022

  • append selectedDate option field to CalendarOptions. Its afford to set current date inside Calendar constructor
  • allow to hide selected date before user select date (now today is auto selecting)
  • set month bounds via CalendarOptions

Example:

let date = new Date;
date.setDate(55)

const calendar = new Calendar({
    id: "#calendar",
    calendarSize: "small",
    currentDate: date,
    startMonth: new Date(2022, 10),
    endMonth: new Date(2022, 12),
    selectInitialDate: false
})

@Sanshain Sanshain changed the title Improving Ability to set the date directly when calling the constructor and other minor improvements Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant