ForgeКомпоненти
bg

Компоненти

j-Progress

jComponent 20 · jcomponent@20 component Примерът е зареден с jComponent 20

Конфигуриране:

  • animate {Boolean} позволява анимация (предварително: true)

Използвайте го с <ui-component name="progress">Когато компонентът все още не е зареден, jComponent Изтегляне на първия адрес в DEF.fallback (След това Componentator Източник: Питър Шерка Componentator Съставни съставки, лиценз на MIT.

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>