Styling Possibilities for Datepicker Field
See original GitHub issueQuestion
Hi,
we have recently implemented the datetimepicker
module and we like it a lot. One thing we are now facing is the challenge to somehow style the component that shows the date.
We would like to style it as all our input fields ( border, backgroundColor, fontColor and even enrich it with a calendar icon )
Is there any way to use a custom component ( like a textLink, an styled inputfield or anything ) to show the Calendar or can it only be triggered by using the
<DateTimePicker
testID="dateTimePicker"
value={date}
mode={mode}
is24Hour={true}
display="default"
onChange={onChange}
/>
A very simple example would help i guess.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:11
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Are there any style options for the HTML5 Date picker?
On some platforms, the datepicker looks extremely different and I personally can't think of any generic way of styling the native datepicker. Save...
Read more >Styling a native date input into a custom, no-library datepicker
For Helppo users, I wanted to offer a way to edit date and datetime values more conveniently than with a plain text input....
Read more >Options — bootstrap-datepicker documentation - Read the Docs
All options that take a “Date” can handle a Date object; a String formatted ... If false the datepicker will not show on...
Read more >Style options for the HTML5 Date picker - Tutorialspoint
The date picker in HTML5 basically works very similar to how the JavaScript Libraries did, when we focus on the field a calendar...
Read more >Datepicker Widget - jQuery UI API Documentation
A function that takes an input field and current datepicker instance and returns an options object to update the datepicker with.
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
display: 'inline'
for iOS this will show the picker directly on screen, now design your input fields the way you want, then onPress show thisDateTimePicker
in a modal or whatever way you want.Hello and thanks for asking, to the best of my knowledge, changing the styles of the provided
compact
picker is not possible, the native component does not offer much styling possibilities. You’ll have to resort to workarounds. Thank you 🙂