This is a migrated thread and some comments may be shown as answers.

Feature Request: Make calling listview available in event args

1 Answer 39 Views
ListView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 04 Apr 2016, 05:15 PM

Could we please make a point to pass the calling listview that fired an event into all LV event args?

Would save doing this

function onLeftSwipeClick(args) {
    var listView = frameModule.topmost().currentPage.getViewById("listView");
    listView.notifySwipeToExecuteFinished();
}

Could be more elegant like

function onLeftSwipeClick(args) {
    args.listView.notifySwipeToExecuteFinished();
}

Which also lets me re-use events functions across listviews as the owner is passed in

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 06 Apr 2016, 07:59 AM
Hello Steve,

Please submit that feature request in the dedicated feedback portal: https://github.com/telerik/nativescript-ui-feedback .

Regards,
Nikolay
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ListView
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Nikolay
Telerik team
Share this question
or