How to use vue-long-click - 1 common examples

To help you get started, we’ve selected a few vue-long-click examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nanu-c / axolotl / axolotl-web / src / main.js View on Github external
faPaperPlane,
  faTimes,
  faCheck,
  faVolumeMute,
  faHeart,
  faSearch,
  faArrowDown,
  faPlus
} from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
library.add(faArrowLeft, faEllipsisV, faPencilAlt, faPlus, faTrash, faPaperPlane,
  faUserFriends, faTimes, faCheck, faVolumeMute, faHeart, faSearch, faArrowDown)

import { longClickDirective } from 'vue-long-click'

const longClickInstance = longClickDirective({ delay: 800, interval: 0 })
Vue.directive('longclick', longClickInstance)
Vue.component('font-awesome-icon', FontAwesomeIcon)
Vue.use(VueChatScroll)
Vue.use(BootstrapVue)
Vue.mixin({
  methods: {
    linkify: function (content) {
      return LinkifyHtml(content);
    },
  },
})
var defaultSanitizeOptions = {
    allowedTags: [],
    allowedAttributes: {
    }
};

vue-long-click

Long click (longpress) directive library for VueJS

MIT
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Popular vue-long-click functions