Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

Enable infinity in HTML Table #56

Open
marlonmleite opened this issue Nov 13, 2015 · 0 comments
Open

Enable infinity in HTML Table #56

marlonmleite opened this issue Nov 13, 2015 · 0 comments

Comments

@marlonmleite
Copy link

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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant