287 comments found.
I need to use this component with Angular2 “angular-cli” can help me
I didn’t use angular before but here it says you can use it by doing this:
http://stackoverflow.com/questions/30623825/how-to-use-jquery-with-angular2Hi . I’m recently purchased your product. this is a great product but i have problem in mobile version about showing more than 1 calendar.
As per your offer in documentation at this point “Mobile versions only show 1 calendar. If you want it to support multiple calendars on mobile or inline support, let me know how it should be designed, and I’ll try to put it on the next release.”
I suggest to use display like at agoda.com on mobile view. it’s used scroll down display calendar.
Hello ginharja, thanks for your comment and your rating to the plugin. I’ll take it into account for the next release. But I can’t give you a date right now because I have other plugins in development.
Hi ginharja, can you check the latest version (1.2), I tried to implement the multiple calendar thing, can you check it?
Hi, great work on the script!
Is there an easy way to change the month/year?
Thank you, if you mean quick switching, no it doesn’t support that.
Hi munett, I’ve implemented the quick switching thing. Click on the month name or year in the new version (1.2). Can you try it?
great work! already purchased! many thanks!
hi tpaksu,
By default the value in field is today, it is possible to make only the calendar appear without having a default range selected and the value of the input is empty until the range is selected?
oninit: function(element) {
var valueInput = $(".caleran-global").val();
alert(valueInput);
element.config.target.val('');
},
alert say Today-today rangue by default
, if neccesary?
check like budgetplaces.com range calendar without default range
Can you try this:
$("#caleran-ex-1").caleran({
oninit: function(elem){
elem.config.target.val("");
},
onaftershow: function(elem){
if(elem.config.startDate.isSame(moment().startOf("day")) && elem.config.startDate.isSame(moment().startOf("day")))
elem.config.target.val("");
}
});
Thanks! in action… http://www.brizanthahotelcampestre.com/es
Looks good! But when I change the language the calendar still shows Spanish strings btw;)
Is possible to set the input text value in blank by default, only placeholder?
Thanks
You can do it with the oninit event:
$(”.input”).caleran({ oninit: function(element){ element.config.target.val(””); });
Thanks!
Did you get it to work?
Yeah! but Override CSS -> .caleran-container .caleran-header { display: none !important; }
Ok, brilliant! CSS media query is one way to do it too.
Thanks for giving a rating to this plugin. I appreciate it.
How can Disable Header or Footer only in Desktop version?
Hi,
You need to use some javascript:
var options = {}; if(!is_mobile_check_here){ options.showHeader = false; } $(”.input”).caleran(options);
You can find the mobile checker here:
http://stackoverflow.com/questions/11381673/detecting-a-mobile-browserThanks!
Did you get it to work?
HI, your item is great!
We have some questions:
1. How can prevent select the same day in range, like budgetplaces.com range calendar.
2. We have a autocomplete input text, after you select item in suggest, we need calenran show.
I try this
$("#destiny").catcomplete({
delay: 0,
minLength: 3,
source: autocomplete_url,
select: function (e, ui) {
//$("#checkin").datepicker('show'); // Open JqueryDatepicker IT'S OK
var caleran = $("#caleran-ex-3").data("caleran"); //
NO SHOW
caleran.showDropdown(); //
NO SHOW
}
});
3. How can disable the months before today?
For days use: minDate: moment().subtract(0, “day”),
Hi, thank you for purchasing and using it 
1. you can use the onbeforeselect event:
$(”.input”).caleran({ onafterselect: function(elem, start, end){ if(start.isSame(end)) return false; return true; });
2. Can you try it with $(”#caleran-ex-3”).click() ?
3. You need to write plural of “day”. moment().subtract(0,”day”) is equal to moment(). Can you try it with moment().subtract(1,”days”) ?
About 3. Need disable back arrow Past Months before today
I would say you would use onbeforemonthchange event but there seems to be a bug in the logic there, I just realized, but you can still use onaftermonthchange event to put the month back if the date is lesser than the current month. Like this:
$("#caleran-ex-1").caleran({
onaftermonthchange: function(elem,month){
if(month.isBefore(moment().startOf(month),"day")){
elem.globals.currentDate = moment();
elem.reDrawCalendars();
}
}
});
I should fix the onbeforemonthselect event. But I don’t know when the next release would be. Thanks for letting me see that error 
Ok thanks!, we can wait you.
The item most important is prevent select the same day in range can you check budgetplaces.com range calendar? Is it possible to do the same?. Your solution did not work
.
I updated the code with a working example. The previous code had bugs. Sorry.
Did you check it? the updated code is on the previous code comment.
Yes, disable past months, that’s ok, but prevent select the same day in range is not posible with validation and return false;
Sorry, the event should be onbeforeselect. Here’s a working code
$("#caleran-ex-1").caleran({
onbeforeselect: function(elem,start,end){
if(end.isSame(start,"day")){
return false;
}
return true;
}
});
Did you try the code? what happened?
Rated 5 stars! great product and great support! Any chance you are adding a time picker? We are thinking of using this for another project but this one requires a date and time picker.
Thank you
Do you want the time picker on this plugin or another seperate time picker plugin?
Hello all Caleran users, if you like the plugin, can you please rate it? Or give me some feedback about it? I wonder how it’s working out in the wild.
Hi I’m just bought your plugin and i have question – is there posibility to disable specific date ranges ? like in reservation calendars reserved periods of time which are not selectable
Look at the documentation there is a disabledDays option. You can write a filter there.
i need pass to calendar array of ranges to disable from selection, specific dates. and second question – is it moblie friendly ? responsive ? I have a feeling it is not
Hi, I was away for 5 days, I’m now back. How come that you decided it’s not responsive? I shared the landscape and portrait mobile views of the plugin? I’ll add the disabledRanges option to the next release.
I updated the code. You can check the documentation.
Keywords, disabledRanges and continuous option.
Examples included.
For all customers, I’ve pushed an approval request (v1.1.2) to envato, with a major fix on ranges. Thanks to @katspate most of the bugs were fixed. You’ll all be notified when the update is approved.
I’ll be away for 5 days, and I won’t be able to answer your questions until then. Sorry for that.
And don’t forget to review the plugin 
Hi tpaksu,
It seems the new update not fixing the “stopPropagation of undefined” issue, it still exist
Uncaught TypeError: Cannot read property ‘stopPropagation’ of undefined at e.cellClicked (..\..\js\caleran.js:526) at HTMLDivElement.dispatch (jquery.min.js:3) at Object.trigger (jquery.min.js:4) at HTMLDivElement.<anonymous> (jquery.min.js:4) at Function.each (jquery.min.js:2) at uikit.min.js:2 cellClicked @ ..\..\js\caleran.js:526 dispatch @ jquery.min.js:3 trigger @ jquery.min.js:4 (anonymous) @ jquery.min.js:4 each @ jquery.min.js:2 (anonymous) @ uikit.min.js:2
It doesn’t affect the plugin’s work, does it? You can remove the event.stopPropagation line on your code, it doesn’t matter. I suppose uikit has strict validation against undefined variables.
it does, when I click the date, the hover range not working
for locale: ‘id’ (indonesia) first show it works, but when clicking the range link (today. tomorrow) it shows incorrect date and day, ok I think I will use my own version
Cheers
hi tpaksu,
do you know how can I download the previous version of this plugin? I accidentally replaced the files with the new one. you can email it to me to erwin.yusrizal@gmail.com
I will merge the new methods showDropdown and hideDropdown and init by my self
Cheers Thanks
I’ve sent you a new version with the old version. Please try the new one first.
Hi,
I have purchased and implemented the calendar on my site. Its working nicely apart from the date selecting. Every date select sets both from and to dates to the same and no selecting hover state or classes being set.
You can see it here:
http://kea.webflow.ioAny ideas?
Yes, your click event on the calendar is triggered twice. I don’t know why it happens. I don’t think it’s related to the plugin, i’ll look into it.
The reason that the event is triggered twice is that one of the events are “tap” event and the other is “click” event.
Hi, thanks for the reply and looking into this. I am only calling it once. I have removed the call to it and you can test if you load the site and initiate the calendar in chromes console with $(”.calendar-input”).caleran();
It adds the calendar to the input but I still have this issue. Not sure how I am triggering it twice with tab and click events?
Yes, I’ve tested it and saw that the click event was triggered twice. It might be caused by webflow’s scripts. Can you give me your e-mail so I can send you a test?
Is there a way I can message you I don’t want to make my email public
Send it here: caleran@maildrop.cc
Done.
ok, it couldn’t send to maildrop, please send me an empty mail to caleran@forward.cat
Sent. Thanks
What happened? Any progress?
Hi,
I did not get an email from you. I checked based on your email address and see nothing. Please can you re send the test you mentioned to my email.
Not necessary now, can you download the latest update from here? It contains the latest fixes.
Thank you. It is working 100%. Great service!
Can you rate the plugin?
Are there turkish version? April = Nisan
Türkçe olarak kullanabiliyormuyuz kardeşim? Ocak şubat vs.
Evet, locale: “tr” yazarsan ayarlara kullanabilirsin.
Laravel 5.6 ya entegre etmekte sıkıntı çekermiyiz acaba? Bir admin panelinde kullanmayı düşünüyoruzda.
Yok çekmezsiniz. Çok bir ilgisi yok zaten ikisinin. ister genel app.blade dosyasına ister sadece kullanacağınız view içerisine gömebilirsiniz.
Ayrıca aşağıdaki ön tanımlı zamanlarda sorun var sanırım.Sorun= dil değişince bunların dili değişmiyor.
onları da configde değiştirebiliyorsunuz. O örnekte ben kullanıcının browser dilini al dediğim için öyle görünüyor. yoksa çoklu dil göstermek için genel kullanılan bir javascript dil kütüphanesine ihtiyaç olabilir.
burada istediğiniz string’i ön tanımlı range olarak verebilirsiniz.
http://rettica.com/caleran/docs/readme.html#optionsburada da applyLabel, cancelLabel, rangeLabel şeklinde 3 ayar var, onları türkçe yapabilirsiniz.
startOnMonday: true yaparsanız pazartesi günü ilk gün olur.
Hi tpaksu,
Sorry I don’t mean to be impatient but may I know how many days usually it’s approved by envato? because until today I don’t get any email from envato about the new update
Cheers
Usually it says up to 2 days. It’ll get approved soon I guess.
The plugin & the documentation is now updated.
Hi, where can I find onInitiate function or something like that which I will need to fire any action from the initiate ?
Sorry, I didn’t think of implementing it. What do you mean by initiating? On showing or instance creating? You can check the `.data(“caleran”)` attribute after initializing the plugin.
I need like a “__construct” function to fire my own action when the plugin is initializing, I need to update other inputs with the default date when it is loaded , how can I make this ?
Good question. I’ll update the code before the submitted update gets reviewed and push it.
Ok, I added an oninit event to the code. It’ll be available when the next version is approved by envato team. I pushed the updated code to them.
Great job my friend. is there any way to change the date (the displayed date like 15 March, not in the popup calender) from an event ?
You can change the input directly with a matching formatted range.
I think the plugin is not compatible with Jquery Mobile Library. it corrupts when I try to load jquery.mobile.custom.min.js before the plugin
It is downloaded from here http://jquerymobile.com/download-builder/Got any solution for this ?
I didn’t try with jquery mobile library. Maybe there is a collision with mobile touch events with hammer.js and jquery mobile. But if I update this with a proper fix, it won’t be available until next version release.
Can you try something? What happens if you build your jquery mobile composition without the touch events?
When I remove the touch events and the events (because they are selected together), it works fine, but will the events/touch events affect my project performance or behavior ?
if you are not using any of these events, I think not.
https://api.jquerymobile.com/category/events/Man you are so good 
Did you buy the plugin BTW? I can’t see if you bought it.
My manager bought the plugin, I’m the developer who is installing it.
Ok, no problem 
Can you review the plugin please?
I would love to, but I can’t because only buyers can make a review , my manager already did (frutafreska) 
ok 
The new version includes an [oninit] event. FYI.
Great to hear that, you are a genius 
You’re welcome 
Hi I’m just bought your plugin
It has bug with jQuery v3, line 200
this.container.find(”.caleran-title”).size() > 0
$.size() is removed since v3, my temp fix I replace with .length
Thanks
Hi, thanks for purchasing it, I added it to my to-do list for the next version. Thanks for informing me!
also please check this plugin using uikit.js v2, it has some issue as well, in this method cellClicked—> event.stopPropagation(), it throws error.
also when I use moment locale, set locale to ‘id’ the initial calendar load day -1, for example today is Saturday 4, but it loads Friday 4, I think this is UTC problem?
Thanks
I think the issue with uikit is because the TAP event is conflict, let me know if any update about those issue,
Thanks
Hi katspate,
I didn’t try it with uikit.js and I don’t know what happens when you use it with that, but I’ll look at that. For the moment locale, what do you mean the initial calendar load day -1? Can you send me your config with a gist or something?
Hi tpaksu,
By default calendar ‘en’ looks like this (for this month)
MARCH
SUN MON TUE WED THU FRI SAT 26 27 28 1 2 3 4
But if I use locale ‘id’—> Indonesia
SUN MON TUE WED THU FRI SAT 27 28 1 2 3 4 5
you see the issue? today should be SAT March 4, not FRI March 4
Ok I saw it, I’ll look into it. Maybe tomorrow I’ll release a new update for the waiting tasks. If I can’t, I’ll try to give you a workaround for this issue.
Hi katspate,
I need to know something, without changing anything, the plugin with english locale and indonesian locale looks like this (with march as the selected month):
$(".caleran").caleran();
en locale: week starts at sunday
SUN MON TUE WED THU FRI SAT 26 27 28 1 2 3 |4|
$(".caleran").caleran({locale: "id"});
id locale: week starts at monday
MIN SEN SEL RAB KAM JUM SAB 27 28 1 2 3 |4| 5
Isn’t it the correct display form? are you changing anything else?
Hi tpaksu,
Here’s the translation: MIN = SUN SEN = MON SEL = TUE RAB = WED KAM = THU JUM = FRI SAB = SAT
above example it’s similar result but incorrect, the 4 should be SAB (SAT) also I dont have any other config, same config as yours above
$(”.caleran”).caleran({locale: “id”});
I’m just testing the plugin
I tried to create a range, keep the locale to ‘id’:
ranges: [{ title: ‘Today ’, startDate: moment(), endDate: moment().add(1, “days”) }
when I clicked it, it shows the correct date
Hi tpaksu,
I forgot to tell you, I fixed the uikit.js issue, to make it work, I need to delete all the ‘tap’ event in this plugin so I only use ‘click’
the problem is when I click the date, those event listening and when execute twice that makes this this.globals.startSelected never set to TRUE thats why the cellHover doesnt work.
also some of the event.stopPropagation(); has no reference called ‘event’ it will throw error undefined
Hi tpaksu,
About the locale problem, based on this https://github.com/moment/moment/issues/613#issuecomment-13786429
The problem is only appear on global locale ‘en’
this is my rough solution, it works for both startOnMonday and any other locale
on line 388 dev file
for (var days = (_month.startOf(“month”).weekday() – 1 – startOfWeek + 7) % 7; days >= 0; days—) {
I changed it like this:
var localEn = moment.locale() === ‘en’ ? 1 : 0; for (var days = (_month.startOf(“month”).weekday() – localEn – startOfWeek + 7) % 7; days >= 0; days—) {
Hope thats help, since I need to get my work done 
Cheers
Hi tpaksu,
Ignore my last code above, the issue still exist when clicking the range using that code, the problem solved now by changing the Day of Week to ISO Day of Week https://momentjs.com/docs/#/get-set/weekday/
change log:
line 554: if (moment.unix(cellDate).weekday() === 6 || moment.unix(cellDate).weekday() === 0) cellStyle += ” caleran-weekend”;
to
if (moment.unix(cellDate).isoWeekday() === 6 || moment.unix(cellDate).isoWeekday() === 7) cellStyle += ” caleran-weekend”;
Line 387:
for (var days = (_month.startOf(“month”).weekday() – 1 – startOfWeek + 7) % 7; days >= 0; days—) {
to
for (var days = (_month.startOf(“month”).isoWeekday() – 1 – startOfWeek + 7) % 7; days >= 0; days—) {
Cheers
I changed all the weekday to isoWeekday, and it works very well now
I’ve released an update, waiting for approval. You’ll be notified when it’s accepted. It contains a better solution.
OK cool, thanks for your support tpaksu
OK cool, thanks for your support tpaksu
Hi tpaksu,
any idea how to close the calendar when I click keyboard tab ?
In the upcoming version there will be a showDropdown() and hideDropdown() methods, you can bind the element’s focus & blur events.
Can you review the plugin please?
Can you try the uikit problem and the locale problem with the new version? They should be fixed in this release.
Is it possible to disable all days other than Wednesday’s within the calendar so that only Wednesday’s can be selected?
I need to try it myself first then I’ll let you know. Thanks for buying it!
Hi again,
The feature you want needs an event binding in code, will be added in next release, but with some hacking, you can do it like this:
https://gist.github.com/tpaksu/854aa96e6506509a6b7b5077e200d5bfThe new version includes an example in the documentation. You can convert the workaround to that. keyword: “disabledDays” option.
The example is official now: http://rettica.com/caleran/docs/readme.html#custom-disabled-ranges-with-callback-
If you want any feature to be added, ask me and I’ll put it in the next version.
Hi, $(”#caleran”).caleran({format:moment().format(“DD MMM YYYY”)}); returns a garbage value for the month. Please check.
Also, please send a sample to retrieve both dates separately. Thank you. Jay
Hi,
You need to use the format like this:
$(”#caleran”).caleran({ format: “DD MMM YYYY” });
And for seperate values:
var caleranInstance = $(”#caleran”).data(“caleran”); var startDate = caleranInstance.config.startDate; var endDate = caleranInstance.config.endDate;
They will return as momentjs instances, and you can format them any way you want.
Is your problem solved? Can you give some feedback?