How to open date picker manually
See original GitHub issueIssue
Hi, I am unable to open date picker manually. Please provide solution for this problem. I am sharing code snippet below.
Code
openDatePicker(date, mode, format, index) {
this.setState({ datePickerDate: date, datePickerMode: mode, datePickerFormat: format });
DatePicker.onPressDate;
}
and I am calling this method (openDatePicker) on row click.
Environment
react-native -v
: 0.47.1node -v
:6.2.1npm -v
:4.2.0target platform
: Androidoperating system
: windows 10 64 bit
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8
Top Results From Across the Web
JQuery UI DatePicker - How to manually open a datepicker
To show the datepicker associated to the input with id 'your_elem', you would use something like this: jQuery('#your_elem').datepicker("show");.
Read more >Opening DatePicker manually · Issue #685 · Hacker0x01/react ...
This works by calling renderEditingComponent() when clicking a date value on a table column, which makes an input appears on top of it....
Read more >Datepicker Widget - jQuery UI API Documentation
CTRL + HOME : Open the datepicker if closed. CTRL / COMMAND + HOME : Move to the current month. CTRL / COMMAND...
Read more >How to Add a Date Picker in HTML? - Scaler Topics
Here we can see the input has the default date, which is set in the value attribute. Clicking on the calendar icon will...
Read more >Add Datepicker to Input Field using jQuery UI - CodexWorld
The Datepicker helps to input a date by selecting it from the calendar without manually enter in the input field. When you want...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
use: <DatePicker showIcon={false} hideText={true} ref={(ref)=>this.datePickerRef=ref} … />
and from your element: onPress={() => this.datePickerRef.onPressDate()
Here is how you can open it manually with hooks: