How to display Date-picker in IONIC 2?
I wanted to display the DatePicker as soon as page loads. <DatePicker android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/datePicker" android:layout_gravity="center_horizontal|top" android:headerBackground="?attr/colorPrimary" android:layout_alignParentTop="true" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" /> I used Android studio and wrote above code to get the output as in the below image. I wanted to implement the same thing using ionic 2 and wrote below code to get the datepicker. import {Component} from '@angular/core'
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.