Comments (3)
Hi Behseini,
You can calculate the allowed months using the current date. Do something like this:
<script type="application/javascript">
dateToday = new Date();
currMonth = (dateToday.getMonth()+1);
showPrev = (currMonth > 1) ? (currMonth - 1): false;
showNext = (currMonth < 12) ? (12 - currMonth): false;
$(document).ready(function () {
$("#my-calendar").zabuto_calendar({
show_previous: showPrev,
show_next: showNext
});
});
</script>
from calendar.
Hi i have restricted my calendar with 6 month in onload, when i click on one button it will increment by more 6 months dynamically.. please help me to achieve this.
here is my code..
$("#my-calendar").zabuto_calendar({
data: data,
show_days:true,
show_previous: 5,
show_next: false,
today: true,
});
please share your answer with [email protected]
thanks in advance.
from calendar.
Old issue, closing.
from calendar.
Related Issues (20)
- json data not showing in modal window HOT 1
- I am unable to discrimiate badges HOT 1
- Add startDate / initDate HOT 1
- Requesting enable the feature of disable date
- Disable ajax cache HOT 1
- can i display week number like (35,36....52) at the beginning of every week ? HOT 1
- French special characters not displayed correctly HOT 1
- multiple dates HOT 1
- Add NPM. HOT 2
- How to set Date passed on the url
- Problem with mmenu
- Year navigation
- bootstrap colors
- Get EventData's Title Value HOT 1
- Refresh Calendar In Modal
- How to handle if i got Two events in the same date
- How to add badge class to another day clicked on
- How to handle if i got multiple events unable to m dates in multiple array
- How To Disable Previous Days?
- How to highlight the selected day [solution]
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 calendar.