Q: V2 - how to force dialog to be insert in DOM


#1

Hi all,

I am creating a dialog dynamically using

myDialog = app.dialog.create({...

but it seems that it only insert into the DOM when

myDialog.open()

is called. Is there any way to trigger the insertation manually (or as an additional parameter in the create statement?

Reason: I hope that everything runs a bit smoother, if the DOM manupation is done done at the point of time the user is waiting for it.

Best regards
Andreas


#2

This won’t give you any performance boost.

myDialog = app.dialog.create({...

Add to Dom

app.root.append(myDialog.$el)