Skip to main content

Type Alias: RemoveProducts()

RemoveProducts = () => Promise<void>

Function

Removes the currently selected product(s) from the modular scene.

This function deletes the currently selected product(s) from the scene, along with any auto-inserted connectors that may be exclusively associated with them. Products with the "disableDelete" property set to true cannot be removed, and auto-inserted products require special handling.

Product removal allows for iterative refinement of designs by eliminating unwanted components as the design evolves.

Returns

Promise<void>

Example

// Remove the selected product when the delete button is clicked
document.getElementById('delete-btn').addEventListener('click', () => {
window.mimeeqApp.actions.removeProducts();
});

Emits

mimeeq-modular-remove-product This event is fired when Remove button was clicked