Sha256: a824192a29644666cc186b5b8515549f9d2e5315650ca3cbd9bbbe0b3db2b46f
Contents?: true
Size: 792 Bytes
Versions: 1
Compression:
Stored size: 792 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" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dta_rapid-0.5.5 | _includes/forms/item-table.html |