frontello-ui-progress

2.0.1 • Public • Published

Progress

Dynamically set the progress status of steps, on a round progress preview.

Header

<script src="progress.js"></script>
<link rel="stylesheet" href="progress.css">

Body

<nav class="frontello-ui-progress"></nav>
<script>
document.addEventListener('DOMContentLoaded', () => {
	let progressElement = document.querySelector('.frontello-ui-progress');
	progressElement.addEventListener('init', (event) => {
		console.log('progress: init');
		console.log(event.detail);
	}, false);
	progressElement.addEventListener('change', (event) => {
		console.log('progress: change');
		console.log(event.detail);
	}, false);
	
	let progress = new Progress(progressElement);
	progress.setNumberOfSteps(3);
	progress.setStep(1);
});
</script>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.10latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.10
2.0.00
1.1.00
1.0.00

Package Sidebar

Install

npm i frontello-ui-progress

Weekly Downloads

0

Version

2.0.1

License

ISC

Unpacked Size

4.91 kB

Total Files

4

Last publish

Collaborators

  • lennyrouanet