Code

Discussion on Calentim - Date Time Range Picker

Discussion on Calentim - Date Time Range Picker

By
Cart 482 sales

tpaksu supports this item

Supported

This author's response time can be up to 5 business days.

187 comments found.

Hi, how can i add Css class on event or any other methord to add class with .calentim-container

Hello, you can use `instance.container` to access the container object. I would prefer `ondraw` event because you may lose the styles you’ve added on another draw.

Hi, please is possible to scale this calendar? Like make it bigger or responsive?

Thanks for your answer and time. Best regards, Tomas Lipovsky

Hi Thomas, you can change the dimensions by adding extra CSS styles to the elements. Or you can define the oneCalendarWidth option with the size you want to make the calendars bigger horizontally.

I just purchase your plugin calentim for my webpack project. since it is not a npm package, I have no idea how to set it npm, do you have any idea how I can set up the plugin for webpack ?

Hello, I didn’t use it before but there seems to be a tutorial about it: https://blog.npmjs.org/post/112712169830/making-your-jquery-plugin-work-better-with-npm

Sorry for the many comments :p but I still had small something that I would miss.

  • hideOutOfRange ignores swipe left and right
  • when i click on desktop out of the calendar view than close it. I miss it on mobile when click/touch out of the calendar view to close it

What do you think about?

I also fixed the swipe bug can you confirm it too?

I also fixed the swipe bug can you confirm it too?

Yes on my android mobile phone works fine. At weekend test it with iphone and commit here again.

The docs states: maxDate [moment object|javascript Date Object|string|null]: I’m trying to set the max date to today using: maxDate: moment.now() Or maxDate: Date.now()

and get the following error: console-breadcrumbs.js:33 jQuery.Deferred exception: this.config.maxDate.clone is not a function TypeError: this.config.maxDate.clone is not a function

vendor.js:89 Uncaught TypeError: this.config.maxDate.clone is not a function at e.reDrawCells (vendor.js:89) at e.drawUserInterface (vendor.js:89) at e.init (vendor.js:89) at HTMLInputElement.<anonymous> (vendor.js:89) at Function.each (vendor.js:1) at w.fn.init.each (vendor.js:1) at w.fn.init.v.fn.calentim (vendor.js:89) at HTMLDocument.<anonymous> (video_form.js:18)

Hello, sorry I was on vacation and I couldn’t respond. There might be something wrong with javascript dates when converting to moment objects, I’ll check that. You can use `maxDate: moment(),` to set the max date btw.

Check the last update (v.1.3.4)

I want to open calentim calendar with hours and minutes set to 23:59 but I haven0t found how to do that. Could you please help me?

Hello, you can do it like this:

startDate: moment().set({hour:23, minute:59}),
endDate: moment().set({hour:23, minute:59})

Hi, I need to select only one day with time range. Example: 28.8.2019 13:00 – 14:00 Is this possible? Thanks Lipovsky

Hi, check the week selection mode in the examples. You can modify it to select one day.

Could it be that touch gesture not supported on ipad air 2?

I have tested with Safari and Google Chrome but this move the complete calendar up and down

give it a option to change the the viewport to display mobile select on ipad?

I don’t have an ipad so I couldn’t test it on Safari. Can you debug the code block on line 1940 to see if the hammerjs/jQuery mobile events are working correctly?

When i change “ip(hone|od)” to “ip(hone|od|ad)” for ipad in your checkMobile function then works fine for me. This show the mobile view and works correctly to swipe left/ right in the calendar and up/down in the time.

The checkMobile function from 01.08.2014 is probably old

Hi, yes thanks for pointing that out. I will update the checkMobile function in the next version.

v1.3.1 added keyboard support for time pickers

How can I activate this feature? I did not find anything on this page: http://rettica.com/calentim/docs/readme.html#configuration

Thanks in advance.

So it is only possible to change the time with the arrow keys (up and down)? Is it possible to enter the number directly? I would very much like this to be possible.

Sorry it’s not possible. Only up and down works right now. Maybe in the future.

Ok thank you, I would be very happy if this is integrated in the near future :)

I have another question :) plan you in the next time to add a function for select multple dates?

is the last function which i miss to perfectly use your picker ;)

i use the function to add multiple events at the same time

No not multiple times only one time (19:00:00 – 21:30:00) on multiple dates (20.08.2019, 21.08.2019, 27.08.2019, 27.08.2019) to add the same event on more then one date.

https://ibb.co/486GST1

This feature would force the plugin to switch into “only date picking” mode, which is the main feature of caleran. I still think this would fit into caleran instead of calentim.

okay i will follow your caleran and calentim when this feature available will i buy this again :)

How do we enable (see) this new feature?

“added hotel style booking feature for ranges”

Which one? I couldn’t spot it.

Oh, the array values, I don’t remember it now, it was some example code from one of my users which he/she used to define the disabled days. Maybe it was the days after that day which the range continued and I modified it to suit my needs.It’s keys are used in the disableDays function only. Nothing significant for the example.

hey

give it a option to input the next available date as default? i use the minDate and maxDate option

now = 16.08.2019

the next available selected date is 19.08.2019 but the input fill 17.08.2019 as default

thx for help

On my local it works by the way. Maybe it’s the computer’s regional settings which defaults to the format I’ve written above.

Can you contact me from my profile contact box?

I’ve found your problem. The time you’ve given (02:51) isn’t valid in the limits you’ve defined for the days (07:00 – 23:45). So the input is cleared.

Hi! When I enable hideOutOfRange: true parameter, then it kill the design under IE11. https://ibb.co/zn8vmJy

When I change the parameter value to false, then the plugin working correctly.

This solved the problem on IE11 and working with Chrome and Edge too:

.calentim-range { line-height: 0; padding: 15px 0; }

I would prefer line height set to 15px and adjust the padding relative to that because 0 may not display properly on some. I remember that intan into problems with line height set to 0.

Can you try the last version? I added the CSS’es to fix that problem.

Before we purchase this for a client, could you please respond: “they wanted to know if there are any calls made out to the Internet with the paid calendar as this might need to be approved by the Security team. Please advise.”

Do you do any http request calls out to the Internet?

Hello marcioesteves, no, it doesn’t have any calls on the paid version.

Hi, just purchased and works perfect. can you maybe add keyboard navigation support for “jumping” up and down the Minutes and Hoursin the Timepicker ? That would be fantastic, because i am using it for and Webcam Picture archive to jump easy from one picture to the next. thanks a lot + have a nice day

Hello, I pushed an update, can you test it?

Hi, thank you very much. i will try it asap :-)

Hello, yes works perfect, Thanks so much. Another future request could be that in the timepicker it would be nice to be able to direktly tipe the number of hours or minutes inside the timepicker. so in this ways the user can be faster instead of clicking many time there until the desired time is set. thank you again for the fast respond and help :-)

Hey, I’ve just bought calentim, and it looks very nice.

I have two points. First, the startEmpty parameter do not work, if i set showCalendars to false. If I only want to show the clock and set startEmpty to false, then I got an error.

And my second question is about timezones. Is it possible to work with specific timezones in calentim? That would be very nice!

Thank you for using it :)

Yes I’ve considered switching to Luxon, but it won’t contain localization, DST switches, timezones, and some features that I can’t recall right now. Moment is a full package which I started as the base. Otherwise, I would need to rewrite most of the functionality to DateTime object of javascript. It would be a PIA.

I think PIA is a very big understatement when it comes to DateTime and pure Javascript. ;)

Maybe it is a few days ago that you looked at luxon. It has timezone, localization and DST support.

https://github.com/moment/luxon/blob/master/docs/zones.md https://github.com/moment/luxon/blob/master/docs/intl.md

But yea, I think you have more to do than replacing working features with newer cooler implementations.

To be honest, it was a few months before :) I suppose replacing jquery to vanilla js and moment with luxon would be a real improvement on file size. Thanks for the tips!

Hello. I would really like to buy your plugin, but I have an important question: is there a method to destroy the plugin on the page? Like the one Select2 has, for example https://select2.org/programmatic-control/methods#destroying-the-select2-control

Oh, very cool. I’ll then make a purchase in the upcoming week :)

Thanks, if you need anything else, feel free to contact me from my profile contact box.

Hi! We need to block specific 30min intervals for a booking web app. Users will be able to book between 9:00 and 18:00 one 30min interval. After a booking is made we need to disable that 30min interval for future bookings… but not the entire day, just those 30min. Is this possible ? Any suggestions?

Hello bogdandumea, I checked the current code if it is possible, but it doesn’t seem like it. You can read the TimeInsideLimits method in the source and modify it to skip the disabled ones if you can.

Hi ! I just bought Calentim, and i want to use it with monstroid template : https://www.templatemonster.com/website-templates/monstroid2.html

if i put the script.js between the <header></header>, it don’t work… when i put je script.js at the bottom, it works, but all the website header disappear…

When i try to replace script.js with calentim.js.. it’s not work at all ?

Can you help me please ?

Thank you very much. Cédric.

Send the URL to me from my profile contact form.

already do

Answered.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey