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.
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. 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
- Can someone suggest how I can get into inline mode?
- 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.
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.
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
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?
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!