Anyone know how to pass which values to select to an ion-picker so it behaves the same as ion-datetime?
Currently it resets each time and the currently selected value is lost.
Anyone know how to pass which values to select to an ion-picker so it behaves the same as ion-datetime?
Currently it resets each time and the currently selected value is lost.
Off the top of my head, I would say the date as an ISO string. Haven’t used that particular control, though.
I got the answer. Use selectedIndex property in the column.
...
columns: [
{
name: 'hour',
selectedIndex: selectedHoursIndex,
options: [
{ text: '01', value: '01' },
{ text: '02', value: '02' },
...
Thanks for answer.Realy helped