Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Allow to toggle recognizers via props. #67

@LinusBorg

Description

@LinusBorg

Idea for the syntax:

<v-touch 
  @swipe="callbackSwipe"
  "tap="callbackTap"

  <!-- enable all recognizers -->
  :enable="true"

  <!-- disable all recognizers-->
  :enable="false"

  <!-- Object Syntax: enable individual recognizers-->
  :enable="{swipe: true, tap: false}"
/>

TODO:

  • add prop 'enabled', defaults tro true, accepts [Boolean, Object]
  • Add Watcher that enables/disables recognizers according to that prop's value
  • Update README
  • add Tests

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions