FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Bind multiple events on one view · Issue #558 · NativeScript/NativeScript · GitHub

Bind multiple events on one view #558

Description

I modified the sample project created by tns create and tried to bind multiple events on the button.

<Button text="TAP ME" tap="{{ tapAction }}" doubleTap="{{ doubleTapAction }}" cssClass="border-test font-test" />

But only tapAction can be fired.
However if I don't use data binding syntax (of course I have to move functions to main-page.js instead):

<Button text="TAP ME" tap="tapAction" doubleTap="doubleTapAction" cssClass="border-test font-test" />

Then both tapAction and doubleTapAction can be fired properly.
Is there something I'm missing?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL