remove()

BProgress.remove() method

The remove() method removes one or all .bprogress elements from the DOM.

Usage

// Remove a specific element
const element = document.querySelector('#my-progress');
BProgress.remove(element);
 
// Remove all
BProgress.remove();

Typing

BProgress.remove(progressElement?: HTMLElement): void;

Parameters

NameTypeDescription
progressElementHTMLElementIf provided, removes or hides only that element. Otherwise removes all.

If template === null, the element(s) are hidden (via display: none) instead of being fully removed.

On this page