ForgeKomponenty
cs

Komponenty

j-Progress

jComponent 20 · jcomponent@20 component Příklad načten s jComponent 20

Konfigurace:

  • animate {Boolean} umožňuje animaci (předvolené: true)

Použijte ji s <ui-component name="progress">Pokud je součástka ještě nezačleněna, jComponent Stáhnout ji na první použití z adresy DEF.fallback a) The Componentator CDN dle předvolby. autor: Peter Širka. zdroj: Componentator Výrobce je autorizován, MIT licence.

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>