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

Disable swipe on specific items

1 Answer 62 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.
Nicola
Top achievements
Rank 1
Nicola asked on 12 Jun 2017, 11:37 AM
Is there a way once I've set up a swipe action to disabled it on specific items?

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsonev
Telerik team
answered on 12 Jun 2017, 12:12 PM
Hi Nicola,

For this case, you could use `off` method, which allows removing the eventListener for a specific event, while specifying its name. For your convenience, I am attaching sample project, where this scenario has been shown.



More info about the Events in NativeScript and the way for adding and removing event handler review this article from the documentation.

Regards,
nikolay.tsonev
Progress Telerik
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Tags
ListView
Asked by
Nicola
Top achievements
Rank 1
Answers by
Nikolay Tsonev
Telerik team
Share this question
or