Skip to content
This repository was archived by the owner on Jul 10, 2022. It is now read-only.
This repository was archived by the owner on Jul 10, 2022. It is now read-only.

[Feature] Global defaults #64

@jadell

Description

@jadell

We have multiple templates using vuebar, and repeated config in each, even within the same template.

It would be useful to set up global default config when including the mixin in Vue. Of course, options included with the directive in the template should override global defaults.

Something like:

import Vuebar from 'vuebar';
Vue.use(Vuebar, {
  defaults: {
    el1Class: 'foo',
    useScrollbarPseudo: true,
    unselectableBody: false
    // etc...
  }
});

Don't have time to try my hand at this and make a PR right now, but just leaving a note that this would be a useful addition.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions