);
}
- writeValue(value: any) {
- if (value !== undefined) {
- this.startId = value;
+ writeValue(value: ComboboxEntry) {
+ if (value !== undefined && value !== null) {
+ this.startId = value.id;
+ this.applySelection();
}
}
</eg-org-family-select>
The best libraries are: {{bestOnes.value | json}}
<hr>
- <eg-combobox ngModel #templateEntry="ngModel" [allowFreeText]="true">
+ <eg-combobox [(ngModel)]="kingdom" [allowFreeText]="true">
<eg-combobox-entry entryId="Bacteria"></eg-combobox-entry>
<eg-combobox-entry entryId="Archaea"></eg-combobox-entry>
<eg-combobox-entry entryId="Protozoa"></eg-combobox-entry>
<eg-combobox-entry entryId="Fungi"></eg-combobox-entry>
<eg-combobox-entry entryId="Animalia"></eg-combobox-entry>
</eg-combobox>
- Result: {{templateEntry.value | json}}
+ Result: {{kingdom | json}}
<hr>
<eg-date-select [(ngModel)]="dateObject">
</eg-date-select>
dateObject: Date = new Date();
simpleCombo: ComboboxEntry;
+ kingdom: ComboboxEntry;
complimentEvergreen: (rows: IdlObject[]) => void;
notOneSelectedRow: (rows: IdlObject[]) => boolean;
this.toast.success('You chose: ' + l.label);
});
+ this.kingdom = {id: 'Bacteria', label: 'Bacteria'};
+
this.gridDataSource.data = [
{name: 'Jane', state: 'AZ'},
{name: 'Al', state: 'CA'},