Add Vue.use() support
See original GitHub issuePlease consider adding the Vue plugin functionality with an ability to set the default options. This way we can easily change the default prop values while installing Treeselect (especially useful for translating text strings):
Vue.use(require('@riophae/vue-treeselect'), {
openOnFocus: true,
loadingText: '...',
clearAllText: someTranslateFunction('treeselect.clearAll'),
...
})
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Plugins - Vue.js
Plugins are self-contained code that usually add app-level functionality to Vue ... app instance along with additional options passed to app.use() , if...
Read more >VueUse | VueUse
Collection of essential Vue Composition Utilities. ... Add-ons. Support various add-ons like Router, Firebase, RxJS, etc.
Read more >How To Create Custom Vue.js Plugins - DigitalOcean
Vue.mixin() is used to inject functionality into all components. In this case, the mounted() method runs when the component is added to the ......
Read more >Vue JavaScript Tutorial in Visual Studio Code
To install and use the Vue CLI as well as run the Vue application server, you'll need the Node.js JavaScript runtime and npm...
Read more >The Complete Guide to Vue 3 Plug-ins: Part 2 - CODE Magazine
Back in Vue 2, the install() function received the Vue global constructor. To support the Options API inside a plug-in, you make use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just published v0.0.34.
I’m sorry! I’ll revert the mixins export.
I have a plan to write a new module that makes it possible to redefine default props for any component. When this module comes out, I’ll remove the mixins from export again.