have a Angular/Ionic App and wanted to add a Date:
<input type="text" placeholder="value" ng-model="data.reading"><input type="date" ng-model="data.date">
On the iPhone it looks like:
Is there a way to let it look more native? Its just looks very very ugly
Define “More Native”. Any examples of what you would want it to look like?
E.g. The text should be in the vertical center.
No. I just want that the text will be in the vertical center and not at the top of the form element.
m1crdy
December 10, 2014, 9:00am
6
Then give this input some padding-top?
Bichael
December 10, 2014, 6:21pm
7
I think this sould be the job of the UI framework. Not for the user which make a different padding-top for every platform.
m1crdy
December 10, 2014, 7:14pm
8
You could submit a pull request on github. Im gonna link someone of the guys at drifty
@mhartington
I’ve used this in the past. Solid, easy and native. You’ll need to code the callback, so its a bit more complex, but not too bad.
So that original example you should seems like something before ios7, which we’re not supporting. Apple requires all apps to be built for ios7 and up.
But for iOS7 and up, you should be able to just get a native date picker as a keyboard.
1 Like
Ben
December 10, 2014, 8:09pm
11
And use ngCordova to access it!
2 Likes