NativeScript / nativescript-datetimepicker

Plugin with date and time picking fields
Apache License 2.0
27 stars 26 forks source link

TimePickerField in ListViews #50

Closed Lunoc closed 4 years ago

Lunoc commented 5 years ago

Hello Nativescript-user, I am wroking on a NativeScript Vue Project and i have many TimePickerFields in a ListView. For example:

<ListView for="item in myList">
<v-template>
<TimePickerField :time="selectedTime" @timeChange="onDateTimeChange" col="1" locale="de_DE" hint="Von..." pickerOkText="Bestätigen"
pickerCancelText="Abbrechen" pickerTitle="Zeit wählen"></TimePickerField>
 </v-template>
</ListView>

And my "onDateTimeChange"-handler:

onDateTimeChange: function(args) {
                this.selectedTime1=args.value
 }

Now it stores the current selected Time in a variable and that is fine. Is there a way to know which TimePickerfield is calling the function?

It is neccesary because i want to store every selected Time (per TimepickerField) in another variable. for example (selectedTime1, selectedTime2, selectedTime3....) Thank you very much in advance for your answer

support[bot] commented 4 years ago

:wave: @LuNocto, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please, use Stackoverflow to get help.