visma-meglerfront / sweet-modal-vue

The sweetest library to happen to modals.
Other
754 stars 86 forks source link

Suggestion - Default props/options #65

Open veselj43 opened 6 years ago

veselj43 commented 6 years ago

Hello,

I am using dark theme and i wanted to set it as default, but there are no default options for user to define.

I would expect something like this:

Vue.use(SweetModal, {
    sweetModal: {
        overlayTheme: 'dark',
        ...
    },
    sweetModalTab: {
        ...
    }
})

It would be nice if all of the attributes for SweetModal and SweetModalTab that has defined default value in code had the option to define user/project defaults (icon and title may be discutable).

bluefirex commented 6 years ago

Will look into this for the next minor release.

davision commented 5 years ago

This would be very great to have. Any updates on this feature?