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

Version 6 beta, datetime questions

$
0
0
  1. Why is the datepicker always expanded, instead of showing the placeholder like in the demo?
  2. How can I make the “required” attribute work with ion-datetime just like ion-input?

Regarding #1: I’m using the beta6 and am just copying from the datetime example source code.

Instead of looking like “Appt Date [Select Date]” as shown in the demo, in my app the calendar is fully opened to month+time selector. How can I make it show just the placeholder text, initially?

    <ion-item>
      <ion-label position="floating">Appt Date</ion-label>
      <ion-datetime formControlName="apptDate" presentation="date-time" placeholder="Select Date" required></ion-datetime>
    </ion-item>

Regaring #2, if I submit my form without changing the initial date then it still seems to take. I’m not sure if this is related to the popup always being open.

Attachment of just pasting the Ionic demo into a blank page - showing the first datepicker already open.

Thanks.

6 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



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