Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70432

Ionic 3 - DateTime as an option in an ion-select

$
0
0

@askharley wrote:

I’m needing to have 3 options in this select, one being “ASAP”, the other being “Urgent” and the other allowing the user to select a custom date. The method I’ve tried just renders a blank option as the third one. Any help would be greatly appreciated.

Below is my attempt:

<ion-select formControlName="requiredBy" cancelText="Cancel" okText="OK">
    <ion-option value="asap" selected="true">ASAP</ion-option>
    <ion-option value="urgent">Urgent</ion-option>
    <ion-option value="date">
        <ion-datetime displayFormat="DD MMM YYYY"></ion-datetime>
    </ion-option>
</ion-select>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70432

Trending Articles



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