ForgeComponents
en

Components

j-Progress

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20

Configuration:

  • animate {Boolean} enables animation (default: true)

Use it with <ui-component name="progress">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

example.html
<div style="padding:50px;max-width:300px">
	<ui-component name="progress" path="percentage1"></ui-component>
	<br />
	<ui-component name="progress" path="percentage2"></ui-component>
	<br />
	<ui-component name="progress" path="percentage3" config="animate:false"></ui-component>
</div>

<script>
	var percentage = 30;
	setInterval(function() {
		SET('percentage1', (Math.random() * 100) >> 0);
		SET('percentage2', (Math.random() * 100) >> 0);
		SET('percentage3', (Math.random() * 100) >> 0);
	}, 800);
</script>