button

Smart.Accordion

Source

window.onload = function () {
	 var accordionBehavior = document.getElementById('accordionBehavior');

	accordionBehavior.addEventListener('expanded', function (event) {
		var index = event.detail.index;

		if (index === 1) {
			accordionBehavior.update(1, { label: 'Self aware panel Currently I am open' });
		}
	});

	accordionBehavior.addEventListener('collapsed', function (event) {
		var index = event.detail.index;

		if (index===1) {
			accordionBehavior.update(1, { label: 'Self aware panel Currently I am closed' });
		}
	});    
}
Edit

SUPPORT & LEARNING RESOURCES

LICENSE & DOWNLOAD