Permalink
Browse files

feat(customAction): handle button with text only

  • Loading branch information...
jeremyvergnas committed Jun 28, 2016
1 parent a033650 commit a5c86cc2e351e1877b5b2b049f8caf575766661a
Showing with 4 additions and 3 deletions.
  1. +3 −2 src/bootstrap/datatable.html
  2. +1 −1 src/datatable.js
@@ -64,8 +64,9 @@
<i class="fa fa-trash"></i>
</button>
<button repeat.for="action of actions" disabled.bind="action.disabled" class="btn btn-sm btn-${action.type || 'white'}" click.delegate="doCustomAction(action, row)">
<i class="fa fa-${action.icon}"></i>
<button repeat.for="action of actions" title.bind="action.title || ''" disabled.bind="action.disabled" class="btn btn-sm btn-${action.type || 'white'}" click.delegate="doCustomAction(action, row)">
<i if.bind="action.icon" class="fa fa-${action.icon}"></i>
<span if.bind="!action.icon && action.title" t="${action.title}">${action.title}</span>
</button>
</td>
</tr>
@@ -28,7 +28,7 @@ export class DataTable {
@bindable data;
@bindable route;
@bindable pages;
bindable actions;
@bindable actions;
constructor(Router, element, entityManager) {
this.router = Router;

0 comments on commit a5c86cc

Please sign in to comment.