mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Upgrade DataTable to angular 2.0.0-rc.1
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
</label>
|
||||
</th>
|
||||
<th class="mdl-data-table__cell--non-numeric non-selectable {{col.cssClass}}"
|
||||
*ngFor="#col of data.getColumns()"
|
||||
*ngFor="let col of data.getColumns()"
|
||||
[class.column-header]="col.title"
|
||||
[class.mdl-data-table__header--sorted-ascending]="isColumnSorted(col, 'asc')"
|
||||
[class.mdl-data-table__header--sorted-descending]="isColumnSorted(col, 'desc')"
|
||||
@@ -30,7 +30,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr *ngFor="#row of data.getRows(); #idx = index">
|
||||
<tr *ngFor="let row of data.getRows(); let idx = index">
|
||||
<td *ngIf="multiselect">
|
||||
<label
|
||||
class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect mdl-data-table__select"
|
||||
@@ -39,7 +39,7 @@
|
||||
<input type="checkbox" [attr.id]="'row[' + idx + ']'" class="mdl-checkbox__input" [(ngModel)]="row.isSelected" />
|
||||
</label>
|
||||
</td>
|
||||
<td *ngFor="#col of data.getColumns()" [ngSwitch]="col.type"
|
||||
<td *ngFor="let col of data.getColumns()" [ngSwitch]="col.type"
|
||||
class="mdl-data-table__cell--non-numeric non-selectable data-cell {{col.cssClass}}"
|
||||
(click)="onRowClick(row, $event)" (dblclick)="onRowDblClick(row, $event)">
|
||||
<div *ngSwitchWhen="'image'">
|
||||
|
@@ -20,7 +20,7 @@ import {
|
||||
describe,
|
||||
expect,
|
||||
beforeEach
|
||||
} from 'angular2/testing';
|
||||
} from '@angular/core/testing';
|
||||
|
||||
import { DataTableComponent } from './datatable.component';
|
||||
import {
|
||||
|
@@ -23,7 +23,7 @@ import {
|
||||
Output,
|
||||
EventEmitter,
|
||||
AfterViewChecked
|
||||
} from 'angular2/core';
|
||||
} from '@angular/core';
|
||||
|
||||
import {
|
||||
DataTableAdapter,
|
||||
|
@@ -19,7 +19,7 @@ import {
|
||||
it,
|
||||
describe,
|
||||
expect
|
||||
} from 'angular2/testing';
|
||||
} from '@angular/core/testing';
|
||||
|
||||
import {
|
||||
DataColumn,
|
||||
|
Reference in New Issue
Block a user