Created
August 8, 2019 08:56
-
-
Save catwell/9fcf57c883c5b026e09fb77bc9264a3e to your computer and use it in GitHub Desktop.
Elix component example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<script type="module" src="https://component.kitchen/modules/FilterComboBox.js"></script> | |
</head> | |
<body> | |
<elix-filter-combo-box> | |
<div>Acai</div> | |
<div>Akee</div> | |
<div>Apple</div> | |
</elix-filter-combo-box> | |
<button>GO</button> | |
<script> | |
const btn = document.querySelector('button'); | |
const box = document.querySelector('elix-filter-combo-box'); | |
btn.addEventListener('click', () => { | |
console.log(box); | |
box.selectPrevious(); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment