1.0.5 • Published 3 years ago

selection-tip v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

selection-tip

A vue directive with selecting text to search

Install

npm install selection-tip

Example

// import and register the directive
import selection from 'selection-tip'
Vue.directive('selection', selection)

// usage
<article v-selection="prop">This is an article</article>

// prop: Array
[
    {
        label: 'search',
        icon: '...',
        handler(selectedText) {
            console.log('This function is an action after clicking the popover item')
        }
    }
]

// The prop 'label' or 'icon' is required.
// The prop 'handler' is required.

License

MIT

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago