Disable swipe on specific items

Thread is closed for posting
2 posts, 0 answers
  1. Nicola
    Nicola avatar
    13 posts
    Member since:
    Mar 2017

    Posted 12 Jun 2017 Link to this post

    Is there a way once I've set up a swipe action to disabled it on specific items?
  2. Nikolay Tsonev
    Nikolay Tsonev avatar
    340 posts

    Posted 12 Jun 2017 Link to this post

    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.

    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.
Back to Top