From 1d816bc0aa96bce81731fa07ddce253c7959ae4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Wed, 8 Jan 2025 11:30:04 +0300 Subject: [PATCH] update inputdemo | multiselect --- src/app/pages/uikit/inputdemo.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/app/pages/uikit/inputdemo.ts b/src/app/pages/uikit/inputdemo.ts index 06e9715..c76a7d5 100644 --- a/src/app/pages/uikit/inputdemo.ts +++ b/src/app/pages/uikit/inputdemo.ts @@ -29,6 +29,7 @@ import { ToggleButtonModule } from 'primeng/togglebutton'; import { CountryService } from '../service/country.service'; import { NodeService } from '../service/node.service'; import { TreeNode } from 'primeng/api'; +import { Country } from '../service/customer.service'; @Component({ selector: 'app-input-demo', @@ -167,7 +168,7 @@ import { TreeNode } from 'primeng/api';
MultiSelect
- + @for (country of countries; track country.code) {
@@ -178,8 +179,8 @@ import { TreeNode } from 'primeng/api';
- -
{{ country.option.name }}
+ +
{{ country.name }}
@@ -281,7 +282,7 @@ export class InputDemo implements OnInit { dropdownValue: any = null; - multiselectValues = [ + multiselectCountries: Country[] = [ { name: 'Australia', code: 'AU' }, { name: 'Brazil', code: 'BR' }, { name: 'China', code: 'CN' }, @@ -294,7 +295,7 @@ export class InputDemo implements OnInit { { name: 'United States', code: 'US' } ]; - multiselectValue: any = null; + multiselectSelectedCountries!: Country[]; toggleValue: boolean = false;