Skip to content

TimePickerField in ListViews #50

@Lunoc

Description

@Lunoc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions