-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Component:
form: FormGroup;
items = [ { id: 1, text: 'Apples' }, { id: 2, text: 'Oranges' } ];
constructor(
private formBuilder: FormBuilder
) { }
ngOnInit() {
this.form = this.formBuilder.group({
item_id: [1]
});
}
HTML:
<StackLayout class="nt-form" [formGroup]="form">
<PickerField [items]="items" textField="text" valueField="id" pickerTitle="Picker Title" formControlName="item_id">
<ng-template let-item="item">
<Label [text]="item.text" class="label"></Label>
</ng-template>
</PickerField>
</StackLayout>
Expected:
The display value should be Apples
instead of 1
.
Metadata
Metadata
Assignees
Labels
No labels