Search...
deleted
Description
If deleted
is true
, the element is not in the current DOM.
If deleted
is false
the element is in the current DOM.
Note: An element whose
deleted
status istrue
can be edited.
Type:
booleanRead Only
Mixed in from:$w.Element
Was this helpful?
Get an element's deleted status
Copy Code
1const isDeleted = $w("#myElement").deleted; // true
Toggle an element's deleted state
Copy Code
1if( $w("#myElement").deleted ) {2 $w("#myElement").restore();3}4else {5 $w("#myElement").delete();6}