šŸ—“ [FREE Plugin] Air Date/Time Picker

You should use the minimum and maximum date options
If you want the user to be able to select only dates from current month you can do something like below.
The challenge is knowing the last day for the current month. Example here itā€™s 28.
For next month it will be 31.
So you will need some function to give you last day of the current month.
image

I looked at your demo and i think youā€™re not doing it correctly.
Cover the whole date picker element with the button it will still work.
Then put whatever placeholder text into the button text.

Yes! Sorry, Iā€™m in there working now. :slight_smile: It was covered but I couldnā€™t access the popup panel.
Iā€™m playing with the month selection now.

Okay! I think I got it. Iā€™ve decided to pull the start date/end date from a Data Type. This way I can pass info through the URL so that the users can update their March, April, whatever, calendars and save that info.

Thanks so much for sticking with me! I think this is going to work like a charm.

Thanks @seanhoots for making this plugin!

I wish to display the datepicker permanently as per here.

Thereā€™s currently no option inside the plugin to do this. So I tried both wrapping the element with <div></div> and setting inline="true" (code below) as stated in the doc. However because itā€™s a plugin and not a JavaScript instance, I couldnā€™t get it to work.

<input type="text" id="dp9d9c6523bd0b6" placeholder="22/2/2018" inline="true"> doesnā€™t show the datepicker permanently

  1. Can someone suggest how I can get into inline mode?
  2. Would @seanhoots kindly consider adding this into the plugin?

Thanks!

Is there any way I can calculate days in the range of the excluded weekdays? Eg. If I select a month in a range, and I want to exclude Sat & Sun - I get the number of days minus all sat & sun in that range?

@vstsang, yes Iā€™m aware inline mode and if you scroll up this thread you will see I have it planned (see the trello board).
The thing is the inline mode is simply not just setting the inline=true. You also need to instantiate it on a non-input field such as a div. The plugin instantiates on an input field so even if you you wrap it in a div it wonā€™t work as youā€™ve seen.
It will requires me to rewrite the plugin, something I havenā€™t found time to do.
If youā€™re comfortable with some Javascript you can manually do it yourself without using the plugin.
Or you can wait for me to release it in a later date. If the above two options donā€™t work for you and you really really need it, you can sponsor it too.

I think this is something outside the plugin that you should be able to do with some workflow calculations.

Thanks for replying @seanhoots. I would be happy to sponsor.

I would also like to request an additional feature, here is the full list.

Please let me know offline how much youā€™re looking for and how long you expect this to take.

Thanks again.

What will you want to add to the cell content for the custom cell content?

I will get back to you soon for a quote on the inline element feature.

Apologies, I should have been more specific. Iā€™m building an appointment booking app. The custom cell content will indicate on the datepicker whether thereā€™s a morning or afternoon availability for the day.

For example, if there are availabilities for AM, a blue dot will be shown below the date. If both AM & PM have availabilities, then both blue and red dot will be shown as per the mockup below.

image

@seanhoots Did the ability to disable the cursor ever make it in?

Thanks,

ā€“Ken

Not sure if this has been answered before but are there are any plans to eventually be able to block a list of date ranges and not just singular dates? If you have a booking platform where people have multi day reservations it would be incredible to use the Air Date and Time Picker so that those date ranges are blocked out in the dropdown calendar. Not sure if there is a workaround right now where it can be done with singular dates. Let me know! Thanks!

Iā€™ve done it but not pushed it out yet. Trying to lump together some few new features for the next update instead of always pushing a new version for any small feature.

2 Likes

Please add catalan language:

days: [ā€˜Diumengeā€™, ā€˜Dillunsā€™, ā€˜Dimartsā€™, ā€˜Dimecresā€™, ā€˜Dijousā€™, ā€˜Divendresā€™, ā€˜Dissabteā€™],
daysShort: [ā€˜Dgā€™, ā€˜Dlā€™, ā€˜Dtā€™, ā€˜Dcā€™, ā€˜Djā€™, ā€˜Dvā€™, ā€˜Dsā€™],
daysMin: [ā€˜Dgā€™, ā€˜Dlā€™, ā€˜Dtā€™, ā€˜Dcā€™, ā€˜Djā€™, ā€˜Dvā€™, ā€˜Dsā€™],
months: [ā€˜Generā€™,ā€˜Febrerā€™,ā€˜MarƧā€™,ā€˜Abrilā€™,ā€˜Maigā€™,ā€˜Junyā€™, ā€˜Juliolā€™,ā€˜Agostā€™,ā€˜Setembreā€™,ā€˜Octubreā€™,ā€˜Novembreā€™,ā€˜Desembreā€™],
monthsShort: [ā€˜Genā€™, ā€˜Febrā€™, ā€˜MarƧā€™, ā€˜Abrā€™, ā€˜Maigā€™, ā€˜Junyā€™, ā€˜Julā€™, ā€˜Agā€™, ā€˜Setā€™, ā€˜Octā€™, ā€˜Novā€™, ā€˜Desā€™],
today: ā€˜Avuiā€™,
clear: ā€˜Netejarā€™,
dateFormat: ā€˜dd/mm/yyyyā€™,
timeFormat: ā€˜hh:ii aaā€™
firstDay: 1

1 Like

Hi @hola1, ok thanks I will add it to next version.

@seanhoots

Hi Sean, iā€™m trying to show an element once the air date/time picker has been clicked and the calendar appears.

Showing my other element isnā€™t a problem, as i can do it when the date picker is clicked or set a state when it is clicked to be ā€œopenā€, and have my other element show based on that state.

However iā€™m struggling to close/hide my other element when the date/time picker is auto closed, a smart feature i want to keep. However, it isnā€™t easy for me to set the state to closed when anything else on the screen is clicked, and seen as though the date /time picker is still visible (just not the calendar) when its auto closed, iā€™m struggling to come up with a conditional rule to tell me when the calendar section of the plugin is not visible, so i can hide my other element. Any ideas how to do that?

Hi @Andy_i, do you mean you want triggering events for when the calender is showing amd when it is hiding?

@seanhoots Yes, exactly, as simple as making another element visible or not.

Hi @seanhoots Iā€™m also willing to sponsor inline calendar as well. Iā€™m building an Airbnb style availability calendar where a user should be able to mouse over a date to block it and click on it again to unblock it. Pretty much your plugin has everything thatā€™s needed built in to make this happen other than the ability to make the calendar permanently visible. Thanks!

1 Like