Skip to content

sc-link to fire an custom event, open (or not) links in href attributes.

Notifications You must be signed in to change notification settings

siscomando/sc-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sc-link

The sc-link to fire an custom event, open (or not) links in href attributes.

Usage

<body unresolved>

      <sc-link href="http://hipy.co" eventname="sc-select" continue="true">
        2015RI/00000345
      </sc-link>

      <script>
        window.addEventListener('polymer-ready', function(e) {
          var link = document.querySelector('sc-link');
          link.addEventListener('sc-select', function(e) {
            console.log(e.detail.issue);
          });
        });
      </script>
</body>

About

sc-link to fire an custom event, open (or not) links in href attributes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages