Giter Club home page Giter Club logo

Comments (5)

InfoLocationProjects avatar InfoLocationProjects commented on July 23, 2024 2

I found it is working for Ionic 6. You just need to set the to: date to be a future date. For example:
this.options = {
color: 'secondary',
from: new Date(2021, 0, 1), // days click enabled from;
to: new Date(2024, 8, 15), // days click enabled to;
showMonthPicker: false,
daysConfig: _daysConfig,
};

from ion2-calendar.

eugenedw avatar eugenedw commented on July 23, 2024 1

I took this approach to get it working:

options: CalendarModalOptions = {
    pickMode: 'multi',
    showMonthPicker: true,
    from: moment().add(-1,'year').toDate(),
    to: moment().add(1,'year').toDate()
};

from ion2-calendar.

francoav avatar francoav commented on July 23, 2024

Hello, I have the same problem, were you able to solve it?

from ion2-calendar.

11joselu avatar 11joselu commented on July 23, 2024

I found that the "minimum" from date is 1971

  const options: CalendarModalOptions = {
      title: '',
      from: new Date(1971, 0, 1),
      to: 0,
      defaultDate: new Date(),
   };

image

If you set before 1971 it will show all elements as a disabled

  const options: CalendarModalOptions = {
      title: '',
      from: new Date(1970, 0, 1),
      to: 0,
      defaultDate: new Date(),
   };

image

from ion2-calendar.

heliomarpm avatar heliomarpm commented on July 23, 2024

Unfortunately this repository was abandoned, to solve my problems with dates before 1970 and updates, I released a new version with corrections and new features.

https://www.npmjs.com/package/@heliomarpm/ion-calendar

from ion2-calendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.