Selected value: {{ value | json }}
diff --git a/projects/demo/src/modules/components/combo-box/examples/7/index.ts b/projects/demo/src/modules/components/combo-box/examples/7/index.ts new file mode 100644 index 000000000000..648072e39ad4 --- /dev/null +++ b/projects/demo/src/modules/components/combo-box/examples/7/index.ts @@ -0,0 +1,25 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; + +@Component({ + selector: 'tui-combo-box-example-7', + templateUrl: './index.html', + encapsulation, + changeDetection, +}) +export class TuiComboBoxExample7 { + value = null; + + readonly items = [ + {name: 'John', surname: 'Cleese', disabled: false}, + {name: 'Eric', surname: 'Idle', disabled: false}, + {name: 'Graham', surname: 'Chapman', disabled: true}, + {name: 'Michael', surname: 'Palin', disabled: true}, + {name: 'Terry', surname: 'Gilliam', disabled: false}, + {name: 'Terry', surname: 'Jones', disabled: false}, + ]; + + readonly stringify = (item: {name: string; surname: string}): string => + `${item.name} ${item.surname}`; +} diff --git a/projects/kit/components/select-option/select-option.component.ts b/projects/kit/components/select-option/select-option.component.ts index 19798aff6109..9c544114ae29 100644 --- a/projects/kit/components/select-option/select-option.component.ts +++ b/projects/kit/components/select-option/select-option.component.ts @@ -77,7 +77,7 @@ export class TuiSelectOptionComponent