From 62562a6b97c0a0930a199a40dab909ef4bfcb527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renato=20de=20Le=C3=A3o?= Date: Mon, 24 Aug 2020 19:05:16 +0100 Subject: [PATCH] update: documentation on programatic usage --- README.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/README.md b/README.md index f75e512c..dd626304 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,60 @@ import vClickOutside from 'v-click-outside' ``` +Or use directive‘s hooks programatically + +```vue + +``` + +```vue + + +``` + +See [#220](https://github.com/ndelvalle/v-click-outside/issues/220) for details or [check-out this demo](https://codesandbox.io/s/v-click-outside-programatic-usage-o9drq) + ## Example [![Edit v-click-outside](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/zx7mx8y1ol?module=%2Fsrc%2Fcomponents%2FHelloWorld.vue)