Created
May 27, 2014 20:05
-
-
Save stlsmiths/9430a6c0cb2e69e638e5 to your computer and use it in GitHub Desktop.
template for datatable
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
<table class="table table-bordered table-hover table-condensed"> | |
<thead> | |
<tr> | |
<th>- Actions -</th> | |
<th ng-repeat="col in cols" ng-click="columnClick(col)" data-col-index="{{$index}}" class="">{{col.key}}</th> | |
</tr> | |
</thead> | |
<tbody class="body-scroll"> | |
<tr ng-repeat="row in rows | orderBy:sortCol"> | |
<td class="center" style="min-width:175px;width:175px;"> | |
<input type="checkbox" ng-model="row._selected" /> | |
<edit-button click="buttonClick({act:'edit',row:row,db:dbn,tbl:tbn})">Edit</edit-button> | |
<delete-button click="buttonClick({act:'del',row:row,db:dbn,tbl:tbn})">Delete</delete-button> | |
</td> | |
<td ng-repeat="col in cols">{{row[col.key]}}</td> | |
</tr> | |
</tbody> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment