render()

BProgress.render() method

The render() method ensures a .bprogress element is present in the DOM. If template is not null, it creates it if missing. Otherwise, it relies on a user-provided element.

Usage

BProgress.render(true);

Typing

BProgress.render(fromStart: boolean = false): HTMLElement[];

Parameters

NameTypeDescription
fromStartbooleanIf true, the bar is rendered at 0% (used internally when starting for the first time)

On this page