From 16c41fb2295c232dbe3329b08995ccd85962abed Mon Sep 17 00:00:00 2001 From: anandtiwary <52081890+anandtiwary@users.noreply.github.com> Date: Thu, 6 Jan 2022 17:23:05 -0800 Subject: [PATCH] feat: add option to configure create option label --- projects/components/src/combo-box/combo-box.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/components/src/combo-box/combo-box.component.ts b/projects/components/src/combo-box/combo-box.component.ts index 694244aa0..c4f4de88a 100644 --- a/projects/components/src/combo-box/combo-box.component.ts +++ b/projects/components/src/combo-box/combo-box.component.ts @@ -147,6 +147,9 @@ export class ComboBoxComponent implements AfterViewInit, OnChan @Input() public provideCreateOption: boolean = false; + @Input() + public createOptionLabel?: string = 'Create'; + @Input() public text?: string = ''; @@ -215,7 +218,7 @@ export class ComboBoxComponent implements AfterViewInit, OnChan private buildCreateOption(text: string): ComboBoxOption { return { - text: `Create "${text}"`, + text: `${this.createOptionLabel} "${text}"`, tooltip: text, icon: IconType.AddCircleOutline };