8000 GitHub - lcomino/Repeater
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lcomino/Repeater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Dependencies Status DevDependencies Status

RepeaterJs

Repita listas, rows, divs, links, imagens.

Instalando com Bower

bower install RepeaterJs

Adicionando no html

<table class="table table-hover">
    <thead>
      <tr>
        <th>
          Nome
        </th>
        <th>
          Github
        </th>

      </tr>
    </thead>
    <tbody>
      <tr class="repeater">
        <td>
          {{nome}}
        </td>
        <td>
          <a href="{{github.url}}">{{github.usuario}}</a>
        </td>
      </tr>
    </tbody>
</table>

<script src="bower_components/repeaterjs/dist/repeater.js"></script>

Utilizando

<script>
  var dados = [{
      nome: 'Lucas Comino',
      github : {
        usuario: 'lcomino',
        url : 'https://github.com/lcomino'
      }
    },
    {
      nome: 'João da Silva',
      github : {
        usuario: 'joao.silva',
        url : 'https://github.com/joao.silva'
      }
    }
  ];

  Repeater.init('.repeater', dados);
</script>

Simples, sua table estará preenchida!

Fique a vontate para contribuir com o projeto.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0