Bind custom class to Dialog?
-
Is there any way to bind custom class to a dialog that was triggered from JavaScript
with the $q.dialog(options) method ?
Thank you
Domen -
You could use it as a component instead of
$g.dialog()
whic his explained here: http://quasar-framework.org/components/dialog.html#Basic-Usage-As-a-Component -
@a47ae
It would helped if the Quasar Dialog had an additional class on, but it has the same classes as the Modal component so it cannot be styled separately.Dialog classes appenden by Quasar
modal fullscreen row minimized flex-center
Also in my case it’s unconvinient to use it as a component since its trigger from vuex store when an action is dispatched.
Thanks
-
You can always open a GitHub issue about this. The modal has such properties to add classes (http://quasar-framework.org/components/modal.html#Vue-Properties) so you propasal should be accepted.
-
If you need a special Dialog, use the QDialog component which can be fully customized instead of this.$q.dialog