diff --git a/README.md b/README.md index db26a9f..4caf029 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ The menu disappears when you expect by utilizing `vue-clickaway` and it also opt  ## Note -The API has changed. Check [v2.0.1 documentation](https://github.com/rawilk/vue-context/blob/master/docs/2.0.1.md) +The API has changed since the last major release. Check [v2 documentation](https://vue-context.randallwilk.com/docs/2.0/overview) if you use the old version. ## Getting Started diff --git a/docs/2.0.1.md b/docs/2.0.1.md deleted file mode 100644 index 5003ae2..0000000 --- a/docs/2.0.1.md +++ /dev/null @@ -1,135 +0,0 @@ -# vue-context - -A simple yet flexible context menu component for Vue. It is styled for the standard `ul` tag, but any menu template can be used. -The only dependency this package has is Vue, so the majority of styling is up to you, and any package styles for the menu -can easily be overridden. - -The menu disappears when you expect by using the `onblur` event and also disappears when clicked on. - -## Note - -This documentation is for version 2.0.1 of vue-context. For the most up-to-date version -of the package and documentation, please visit [vue-context](https://github.com/rawilk/vue-context). - -## Getting Started - -The following instructions will help you get the vue-context menu up and running on your project. - -### Installation - -Using npm: -```bash -$ npm install vue-context@2.0.1 --save -``` - -## Basic Usage - -Import the package and use in your Vue instance, and add a simple method for the click event. - -```js -import Vue from 'vue'; -import vContext from 'vue-context'; - -new Vue({ - el: '#app', - components: { - vContext - }, - methods: { - /** - * Alert the text of the menu item clicked on. - * - * @param text - */ - onClick(text) { - alert(`You clicked ${text}!`); - } - } -}); -``` - -Add an element to the page that will trigger the context menu to appear, and also add the context menu to the page. - -```html -
- Right click on me -
-- Right click on me -
- -