Sha256: 906e507b300c6f4746cd59e11b78efe1a7be68175ede4d364fe21902bdb6e0db
Contents?: true
Size: 809 Bytes
Versions: 6
Compression:
Stored size: 809 Bytes
Contents
<table class="uikit-table"> <thead> <tr> <th>Item number</th> <th>Amount</th> </tr> </thead> <tbody> {% include forms/item-row.html %} {% include forms/item-row.html %} {% include forms/item-row.html %} </tbody> </table> {% include buttons/link-button.html text="Add another item" className="uikit-btn--tertiary uikit-btn--block" onclick="addRow()"%} <script type="text/javascript"> var addRow = function() { var xhr = new XMLHttpRequest(); xhr.responseType = 'document'; xhr.open('GET', window.location.href); xhr.onload = function() { var tableRow = this.response.querySelector('.item-row'); var tableBody = document.querySelector('.uikit-table tbody'); tableBody.appendChild(tableRow); }; xhr.send(); } </script>
Version data entries
6 entries across 6 versions & 1 rubygems