Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Ion-datetime keyboard input

$
0
0

Hi,
I have used Ionic to build a simple web page app. This project I don’t package as a mobile app, but just deploy it to be served from a server.

Now the app will sometimes be displayed on mobile device and sometimes on a PC.

My specific problem is the ion-datetime element. The date picker works nice on touch devices, but is cumbersome to use on laptops and such. Is there any way, I can get it working with keyboard? After reading the docs for the element, I haven’t found any mention regarding keyboard input whatsoever.

If not, could I somehow conditionally show a different element (regular text fields maybe?) if this is a device without a touch screen?

Thanks for any suggestions!

version I use:


    "@angular/common": "~12.1.1",
    "@angular/core": "~12.1.1",
    "@angular/forms": "~12.1.1",
    "@angular/platform-browser": "~12.1.1",
    "@angular/platform-browser-dynamic": "~12.1.1",
    "@angular/router": "~12.1.1",
    "@ionic/angular": "^5.5.2",

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>