table > edit

UI Components for Angular
Post Reply
CrazyBite
Posts: 1
Joined: 04 Jul 2018, 09:20

18 Jul 2018, 09:38

Hello! I have problem with check correct data after subminting input.
My html template:

Code: Select all

      <td *ngFor="let col of databaseStructure.columns" pEditableColumn>
        <p-cellEditor>
          <ng-template pTemplate="input">
            <input type="text" [(ngModel)]="rowData[col.field]" (keydown)="editValue(rowData,col.field)">
          </ng-template>
          <ng-template pTemplate="output">
            {{rowData[col.field]}}
          </ng-template>
        </p-cellEditor>
      </td>
Can I check new value after press enter on input ?

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests