- What is the correct way to integrate a checkbox within a turbo table within an angular form(<form #myForm="ngForm>"),
which receives it's value(boolean) from a loaded model. Currently I have tried to integrate one like so...
<form #myForm="ngForm">
<p-table [columns]="model" [(value)]="model">
<ng-template pTemplate="body" let-model>
<tr [pSelectableRow]="model">
<td pEditableColumn>
<p-checkbox name="aName" [(ngModel)]="model.property" binary="true" [ngModelOptions]="{standalone: true}"></p-checkbox>
</td>
</tr>
</ng-template>
</p-table>
- With "[ngModelOptions]={standalon: true}", the values load correctly, however the form will not recognize the value change after a check.
primeng turbo table
Check out, under the Input category:
https://www.primefaces.org/primeng/#/checkbox
https://www.primefaces.org/primeng/#/checkbox
Thank you for your reply.
I found a partial solution to my problem
Instead of using this Format:
<p-checkbox name="aName" [(ngModel)]="model.property" binary="true" [ngModelOptions]="{standalone: true}"></p-checkbox>
I was able to provide the values from the model using this one:
<p-checkbox name="aName{{model.property}}" [(ngModel)]="model.property" binary="true"></p-checkbox>
I found a partial solution to my problem
Instead of using this Format:
<p-checkbox name="aName" [(ngModel)]="model.property" binary="true" [ngModelOptions]="{standalone: true}"></p-checkbox>
I was able to provide the values from the model using this one:
<p-checkbox name="aName{{model.property}}" [(ngModel)]="model.property" binary="true"></p-checkbox>
-
- Information
-
Who is online
Users browsing this forum: No registered users and 11 guests