XKit

XKit.progress: manipulate progress bars.

Methods

# XKit.progress.add(id)

Set id to something random and it will return a string containing the HTML code you should be using.

# XKit.progress.value(id, value)

Set the progress of the bar. value is an integer between 0 and 100.

Usage

var progress = XKit.progress.add("my-extension-progress-bar");
XKit.window.show("Wait, please!","Installing something. " + progress, "info");
XKit.progress.value("my-extension-progress-bar", 50);

Tips