Type Alias: RemoveProducts()
RemoveProducts = (
elementInstanceIds?) =>Promise<void>
Function
Removes specific product configurations by their element instance IDs. If no IDs are provided, removes the currently selected item(s) instead.
This function provides flexible removal by accepting an optional list of element instance IDs. When IDs are specified, only those products are removed from the scene. When no IDs are provided, it falls back to removing the currently selected product(s), behaving identically to removeSelected.
Products with the "disableDelete" property set to true cannot be removed, and auto-inserted products require special handling.
Parameters
elementInstanceIds?
string[]
Optional array of element instance IDs to remove. If omitted or empty, removes currently selected items.
Returns
Promise<void>
Example
// Remove the selected product when the delete button is clicked
document.getElementById('delete-btn').addEventListener('click', () => {
window.mimeeqApp.actions.removeProducts(["uniqueId", "uniqueId2"]);
});
Emits
mimeeq-modular-remove-product This event is fired when Remove button was clicked