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>

Dependents (0)

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