Skip to content

telecomsante/iron-views

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#<iron-views>

iron-views is directly derived from Polymer's iron-pages.

iron-pages was forked because it hides unselected pages by using display: none which is currently not an option with Electron's webviews

The Example remains the same as for iron-pages:

<iron-views selected="0">
  <div>One</div>
  <div>Two</div>
  <div>Three</div>
</iron-pages>

<script>
  document.addEventListener('click', function(e) {
    var views = document.querySelector('iron-views');
    views.selectNext();
  });
</script>

About

Simple content switcher with webviews support

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 97.8%
  • JavaScript 2.2%