Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initiate Dom7 code inside a component page #33

Open
udemethegrtman opened this issue May 29, 2020 · 0 comments
Open

Initiate Dom7 code inside a component page #33

udemethegrtman opened this issue May 29, 2020 · 0 comments

Comments

@udemethegrtman
Copy link

Hello how do i initiate a Dom7 code inside a component page apart from using the onclick or @click event handlers.

SAMPLE COMPONENT PAGE

<template >
<div class="page" data-name="sample">
<!-- Code here -->
<button id="sample-btn">A sample</button>
</div>
</template>

<script type="text/javascript">
  
  $$("#sample-btn").on("click",function(){

    alert("Testing sample component page");

  });

</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant