Vuetify: [Feature Request] Programmatically Dialogs

Created on 18 Jan 2018  路  9Comments  路  Source: vuetifyjs/vuetify

New Functionality

Is there any plans to implement programmatically dialogs like that?

https://buefy.github.io/#/documentation/dialog

this.$dialog.alert('Everything looks fine!')

or

this.$dialog.alert({
                    title: 'Title Alert',
                    message: 'I have a title, a custom button and <b>HTML</b>!',
                    confirmText: 'Cool!'
                })

Improvements

Its very usefull if you have many context dialogs in the same page. Many lines of code saved on <template>.

Bugs or Edge Cases it Helps Avoid

Clean html source.

New Component VDialog feature

Most helpful comment

Yes, coming as a vuex module in the future. Talked about here

All 9 comments

I know that we've been hesitant to add programmatic functionality like this previously. Any opinions @vuetifyjs/dev-team ?

Personally I think this could be a user land plugin/add-on

We will have to do some evaluation after v1.1. Currently we have a programmatic snackbar in the PR queue with every intent to integrate. Maybe it is possible to create a factory generator that handles both cases.

Any plans to support it officially or any add-ons?

@johnleider

Any good news on this? Dialog service is very useful, please support it.

  1. With Javascript Object
  2. By import another/external template.

Thanks for your awesome works :D

Yes, coming as a vuex module in the future. Talked about here

Is anyone working on this? Maybe I could help solving this one.

I would like the same for Dialog, snackbar.. etc... Better than creating a new snackbar component for my apps.

Hi, maintainers how about this?

https://www.npmjs.com/package/vuetify-dialog

Thank you for the Feature Request and interest in improving Vuetify. After careful consideration the team has decided that this is not functionality that we are looking to implement at this time.

With that being said, I still have intentions of adding this type of functionality into a vuex module in the future.

If you have any additional questions, please reach out to us in our Discord community.

Was this page helpful?
0 / 5 - 0 ratings