-
Notifications
You must be signed in to change notification settings - Fork 820
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 40 additions & 37 deletions
77
frameworks/non-keyed/vanilla-dom-framework/src/template.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,44 @@ | ||
<div class="jumbotron"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<h1>vanilla-dom</h1> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="row"> | ||
<div class="col-sm-6 smallpad"> | ||
<button type='button' id="run" class='btn btn-primary btn-block' on-click='this.run'>Create 1,000 rows</button> | ||
</div> | ||
<div class="col-sm-6 smallpad"> | ||
<button type='button' id="runlots" class='btn btn-primary btn-block' on-click='this.runLots'>Create 10,000 rows</button> | ||
</div> | ||
<div class="col-sm-6 smallpad"> | ||
<button type='button' id="add" class='btn btn-primary btn-block' on-click='this.add'>Append 1,000 rows</button> | ||
<div class="container"> | ||
<div class="jumbotron"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<h1>vanilla-dom</h1> | ||
</div> | ||
<div class="col-sm-6 smallpad"> | ||
<button type='button' id="update" class='btn btn-primary btn-block' on-click='this.update'>Update every 10th row</button> | ||
<div class="col-md-6"> | ||
<div class="row"> | ||
<div class="col-sm-6 smallpad"> | ||
<button type='button' id="run" class='btn btn-primary btn-block' on-click='this.run'>Create 1,000 rows</button> | ||
</div> | ||
<div class="col-sm-6 smallpad"> | ||
<button type='button' id="runlots" class='btn btn-primary btn-block' on-click='this.runLots'>Create 10,000 rows</button> | ||
</div> | ||
<div class="col-sm-6 smallpad"> | ||
<button type='button' id="add" class='btn btn-primary btn-block' on-click='this.add'>Append 1,000 rows</button> | ||
</div> | ||
<div class="col-sm-6 smallpad"> | ||
<button type='button' id="update" class='btn btn-primary btn-block' on-click='this.update'>Update every 10th row</button> | ||
</div> | ||
<div class="col-sm-6 smallpad"> | ||
<button type='button' id="clear" class='btn btn-primary btn-block' on-click='this.clear'>Clear</button> | ||
</div> | ||
<div class="col-sm-6 smallpad"> | ||
<button type='button' id="swaprows" class='btn btn-primary btn-block' on-click='this.swapRows'>Swap Rows</button> | ||
</div> | ||
</div> | ||
<div class="col-sm-6 smallpad"> | ||
<button type='button' id="clear" class='btn btn-primary btn-block' on-click='this.clear'>Clear</button> | ||
</div> | ||
<div class="col-sm-6 smallpad"> | ||
<button type='button' id="swaprows" class='btn btn-primary btn-block' on-click='this.swapRows'>Swap Rows</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<table class="table table-hover table-striped test-data"> | ||
<tbody> | ||
<tr repeat-for="{{st.data}}" class="{{this.itemClass(i)}}" on-click="this.handleClick"> | ||
<td class="col-md-1">{{items[i].id}}</td> | ||
<td class="col-md-4"> | ||
<a class="select" data-index="{{i}}">{{items[i].label}}</a> | ||
</td> | ||
<td class="col-md-1"><a><span data-index="{{i}}" class="glyphicon glyphicon-remove remove" aria-hidden="true"></span></a></td> | ||
<td class="col-md-6"></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<table class="table table-hover table-striped test-data"> | ||
<tbody> | ||
<tr repeat-for="{{st.data}}" class="{{this.itemClass(i)}}" on-click="this.handleClick"> | ||
<td class="col-md-1">{{items[i].id}}</td> | ||
<td class="col-md-4"> | ||
<a class="select" data-index="{{i}}">{{items[i].label}}</a> | ||
</td> | ||
<td class="col-md-1"><a><span data-index="{{i}}" class="glyphicon glyphicon-remove remove" aria-hidden="true"></span></a></td> | ||
<td class="col-md-6"></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span> | ||
</div> |