infinity icon indicating copy to clipboard operation
infinity copied to clipboard

Enable infinity in HTML Table

Open marlonmleite opened this issue 10 years ago • 0 comments

Hello,

Is there any way we can easily enable infinity in

of a html? I tried and fails, Example:
    <table class="table table-striped">
      <thead>
        <tr>
          <th>First Name</th>
          <th>Last Name</th>
          <th>Username</th>
        </tr>
      </thead>
      <tbody id="tableContainer">

      </tbody>
    </table>

    <script type="text/javascript">
        $(function(){
            var $el = $('#tableContainer');
            var listView = new infinity.ListView($el);

            for (var i = 0; i < 1000; i++) {
                var $newContent = $('<tr><td>Mark</td><td>Otto</td><td>@mdo</td></tr>');

                listView.append($newContent);   
            }
        });
    </script>

marlonmleite avatar Nov 13 '15 19:11 marlonmleite