[Pas2js] TCustomWebWidget(DefaultParentElement)

Michael Van Canneyt michael at freepascal.org
Fri Nov 27 10:58:14 CET 2020



On Fri, 27 Nov 2020, heliosroots wrote:

> I'm using it for a "modal" dialog ... and at the end of its display, I need
> to destroy it ... Even if DefaultParenteElement is special when I destroy a
> widget, it should remove its references, would it be the expectant?

I am not sure that I understand what you mean here.

I often use bootstrap modal dialogs or toasts, and the widgets I use for that have a DefaultParentElement
which point to

<div id="modalparent">
   <!-- modals are rendered here -->
</div>

and

<div id="toastparent">
   <!-- toasts are rendered here -->
</div>

These 2 elements may never be freed ?

Michael.


More information about the Pas2js mailing list