sj82516 / vue-alertify

altertifyjs wrapper for vue
10 stars 5 forks source link

How to access defaults #5

Closed jersingh closed 6 years ago

jersingh commented 6 years ago

How would one set up default position:

defaults.notifier.position = 'top-right';

In my main entry point I tried the following but to no avail:

import Vue from 'vue';
import VueAlertify from 'vue-alertify';
import App from './App';
import Router from './routes';

Vue.use(VueAlertify);

// alertify.defaults.notifier.position = 'top-right';
$alertify.defaults.notifier.position = 'top-right';

Thanks

sj82516 commented 6 years ago

would try these two days.

jersingh commented 6 years ago

Any luck with this issue?

sj82516 commented 6 years ago

It seems that I didn't export alertify so you cannot set the default values. Would try to fix ASAP.
Sorry for the delay