Comments (5)
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.
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.
Hello, I have the same problem, were you able to solve it?
from ion2-calendar.
I found that the "minimum" from date is 1971
const options: CalendarModalOptions = {
title: '',
from: new Date(1971, 0, 1),
to: 0,
defaultDate: new Date(),
};
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(),
};
from ion2-calendar.
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)
- Feature Request for DARK MODE
- Feature Request for Year Range selection
- Modal mode : month localization not working HOT 1
- Defining 'to' for CalendarModalOptions
- Not able to disable dates dynamically. HOT 1
- how to change color month picker and solve the toggle previous button problem?
- Unable to select dates earlier than the current date. HOT 1
- Programmatically select range HOT 3
- CalendarModal with pickMode: 'multi' not working
- 'MULTI' mode, daysConfig passed as marked, are not marked as 'selected' and are not included in the returned dates values HOT 1
- How can I change the months display language in the title? HOT 1
- Ionic App - Buttons not visible HOT 2
- 日期范围包含不可选日期
- How can I customize the days layout?
- DIFFEENT COLOR RANGES
- Unable to inspect 'subTitle' in iOS for ion2-calendar, where as we are able to inspect 'title' in iOS, but not 'subtitle' HOT 1
- Angular 16+ HOT 2
- html version
- New version available here.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ion2-calendar.