Skip to content

Instantly share code, notes, and snippets.

@unirgy
Created January 31, 2011 19:38
Show Gist options
  • Save unirgy/804646 to your computer and use it in GitHub Desktop.
Save unirgy/804646 to your computer and use it in GitHub Desktop.
<tr post-compile-ng:repeat="(row_num, row) in data.rows" ng:class="trClass(row_num)">
<td ng:repeat="(col_id, column) in config.columns" ng:class="tdClass(col_id)">
<ng:switch on="column.type">
<input ng:switch-when="row_checkbox" type="checkbox" name="row[col_id]"/>
<div ng:switch-when="link">
<a ng:href="{{row[col_id].href}}" ng:bind="row[col_id].title"></a>
</div>
<div ng:switch-when="status_progress">
<div ng:bind="row[col_id].title"></div>
<div ng:show="row[col_id].progress" class="progress">
<div ng:style="{width:row[col_id].progress+'%'}"></div>
</div>
</div>
<div ng:switch-when="actions" class="actions">
<a ng:repeat="a in rowActions(row, col_id)" ng:href="{{a.href}}" ng:class="a.cls" title="{{a.title}}">{{a.title}}</a>
</div>
<div ng:switch-default ng:bind="cellData(row_num, col_id)"></div>
</ng:switch>
</td>
</tr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment