Skip to content

Commit

Permalink
Fixed #155
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Mar 31, 2016
1 parent d460045 commit 996141f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/datatable/datatable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ import {DomHandler} from '../dom/domhandler';
[ngClass]="{'ui-datatable-even':even,'ui-datatable-odd':odd,'ui-state-hover': (selectionMode && rowElement == hoveredRow), 'ui-state-highlight': isSelected(rowData)}">
<td *ngFor="#col of columns" [attr.style]="col.style" [attr.class]="col.styleClass" [ngClass]="{'ui-editable-column':col.editable}" (click)="switchCellToEditMode($event.target,col,rowData)">
<span class="ui-column-title" *ngIf="responsive">{{col.header}}</span>
<span class="ui-cell-data">{{rowData[col.field]}}</span>
<span class="ui-cell-data" *ngIf="!col.template">{{resolveFieldData(rowData,col.field)}}</span>
<span class="ui-cell-data" *ngIf="col.template">
<p-columnTemplateLoader [column]="col" [rowData]="rowData"></p-columnTemplateLoader>
</span>
<input type="text" class="ui-cell-editor ui-state-highlight" *ngIf="col.editable" [(ngModel)]="rowData[col.field]"
(blur)="switchCellToViewMode($event.target,col,rowData,true)" (keydown)="onCellEditorKeydown($event,col,rowData)"/>
</td>
Expand Down

0 comments on commit 996141f

Please sign in to comment.