question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Vue.use() support

See original GitHub issue

Please 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:open
  • Created 5 years ago
  • Reactions:3
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
riophaecommented, Jul 24, 2018

Just published v0.0.34.

1reaction
riophaecommented, Jul 24, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found