Search.../

isRemoved( )

Checks if an element is removed from the widget.

Description

The isRemoved() function returns a Promise that resolves to true if the element is removed.

The element selector is a string with the hash symbol (#) followed by the ID of the item you want to select (e.g. "#myElement"). To use this function on an inner (nested) widget, use getScopedWixEditor().

Syntax

function isRemoved(selector: string): Promise<void>

isRemoved Parameters

NAME
TYPE
DESCRIPTION
selector
string

An element selector.

Returns

Fulfilled - true if the element was removed and false if it exists.

Return Type:

Promise<void>

Was this helpful?

Check if an element is removed

Copy Code
1import wixEditor from 'wix-editor';
2
3// ...
4
5wixEditor.isRemoved('#title')
6 .then(isRemoved => {
7 // Your code that uses the 'isRemoved' value goes here
8 });