react date picker does not show up when clicked, takes certain space - datepicker

I am having a problem to implement date picker in react js. I need a date picker such that user can navigate through different years easily.
For this, I am testing this A carefully crafted date picker for React date picker. The problem is that, it needs much space for a single date picker. I have to use several date pickers in the form. I want that date picker input will be like a text box input. When I click on the text box, date picker will appear, like this one.
I have included the following two css files in my project.
react-date-picker/index.css
react-date-picker/base.css

What you are looking for is DateField. Try this instead:
<DateField
defaultValue={"30.05.2016"}
dateFormat="DD.MM.YYYY"
/>

Related

DatePicker not working in JavaScript Spreasheet

The DatePicker for Date Of Birth in this example is not working.
https://ej2.syncfusion.com/javascript/documentation/spreadsheet/template/
I want to Bind the date picker with DataSource.
Instead of showing date picker all the time, I want to show Date picker when user clicks on the cell.
How can I achieve these two?
Query #1: I want to Bind the date picker with DataSource.
Your requirement can be achieved by using our template property. For your convenience, we have prepared the sample that renders the Date picker for date value applied cells in created and beforeCellRender event. You can find the sample link below.
Sample link: https://stackblitz.com/edit/zykkem?file=index.js
Reference Links:
Demo Link: https://ej2.syncfusion.com/javascript/demos/#/bootstrap5/spreadsheet/cell-template.html
Documentation Link: https://ej2.syncfusion.com/javascript/documentation/spreadsheet/template/
KB Link: https://www.syncfusion.com/kb/12834/how-to-dynamically-add-cell-template-in-javascript-spreadsheet
Query #2: Instead of showing date picker all the time, I want to show Date picker when user clicks on the cell.
Once the data picker is rendered in the cell, it will add this input element to the DOM, and it will display all the time. If you need to show only when you click that cell, you need to destroy and re-render the template again and again, which is a tedious process and complex to implement.

Select more than one form with easepick.js?

I have used a datepicker in several places on the website.
As it is now it doesn't work because document.getElementByID('datepicker') the first datepicker is selected.
Is there a way with document.querySelecotrAll or something like this?
easepick.js form selection

SWIFT | How to get start time and end time from user?

i have an app and i have made a custom mode for the user ( similar to do not disturb mode ).
I want the user to be able to set the start time and end time of that mode manually ( either by picker or slider ) along with AM/PM mode or 24 hour format but it is not possible.
I thought i could achieve this with datepicker time mode but i do not want to present two textfield.
the counter version for this on android looks something like the image below. The UI is not important to me but only the functionality is.
Can anyone help me with this or point me in the right direction ?!
Any help is appreciated.
date picker method will need two fields as i mentioned with is a problem. also the problem with date picker is that it should not look like a textfield so i prefer a UIBUTTON so i can set the image for the button.

ngx-bootstrap: date input with modal datepicker

I'm trying to implement an input for date that has the datepicker in a modal.
The docs cover datepicker and modal - but not the combination.
I am sort of following this, but do I need to create a whole component for the modal? I'm not really sure how to build this.
An example would be very helpful.
As far as I can determine, while it is certainly a very popular request, it is currently not possible.
https://github.com/valor-software/ngx-bootstrap/issues/273

Need help to enter date from date picker

I have been trying to automate booking a flight on www.kayak.com/flights using Selenium webdriver in java. The issue I am having is that I am unable to enter date into the departing date and arrival date boxes, mainly because when you click in the date box, it displays a popup calendar or date picker. My many attempts to identify the xpath for the date picker itself and the date elements have not been successful as whenever I try to click on the date element in the picker, it changes focus. So, unless I can identify them somehow, I can't enter any data into them. I am sure there has to be someone out there who can help me with this dilemma. Thanks.
If you're using firebug to grab the xpath, you should see a dropdown menu right below the inspect element button. You're probably dealing with an iframe and you will need to switch focus to that frame. It should be easy to check which iframe you want if there are multiple (because the blue dotted frames will display) by passing this xpath: //*
You can do this several ways:
1) driver.switchTo().frame(name_or_id)
2) driver.switchTo().frame(index)
If you're still having troubles, you can always guess and check by starting with 0 and increasing it, so driver.switchTo().frame(0)