Looking for guidance on calling a function within a custom tag:
<t-dropdown name='Name' callback="testFn">
</t-dropdown>
<script>
function testFn(value){
console.log(value);
}
</script>
In JavaScript:
var callbackFn = document.getElementsByTagName("t-dropdown")[0].getAttribute("callback");
var abc = 10;
callbackFn(abc);
Open to suggestions on the best approach.