Modal.create(VueComponent) in quasar 0.8
-
In quasar 0.7 you could load a component into a “floating” Modal
Modal.create(Comp.vue) .set( { minimized : true} ) .css( {padding : '50px' } ) .show()
Is it still possible in 0.8 to show a component this way?
-
No. But you can use the
<quasar-modal>
component. http://quasar-framework.org/components/modal.html -
Ah ok, so this is probably the way to go now when using “refs”.
MAIN COMPONENT WITH BUTTON
-
import ModalComponent
-
template part
-
script part (trigger the open() method that is defined in the Modal Component)
MODAL COMPONENT
Also tried it with Events, which works fine as well.
I’ve pretty much completed migration from 0.7 to 0.8 in one day. Has been quite easy.
Thanks also for the terrific docs that come with Quasar.
It’s a joy to read them. -
-
Thank you so much for the appreciation. And also big thanks for posting this out with screenshots and all for other people to read if they have same questions!
-
@rstoenescu Your welcome,
I guess we all know what it’s like to see a thread end with “I found a solution. Thanks…(silence)”