From 5db2e134475593119134e93ad9a00a08cb95a042 Mon Sep 17 00:00:00 2001 From: Tiffany Little Date: Thu, 29 Dec 2022 16:04:12 -0500 Subject: [PATCH] LP1953181 Adds optional LabelText to eg-combobox Signed-off-by: Tiffany Little --- .../src/eg2/src/app/share/combobox/combobox.component.html | 11 +++++++++-- Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.html b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.html index e498670032..c5c53cfa58 100644 --- a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.html +++ b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.html @@ -17,8 +17,14 @@ +
+ +
+ {{labelText}} +
+
-
+ keyboard_arrow_up keyboard_arrow_down
-
+ + diff --git a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts index 735f44a64f..a7e3eb3638 100644 --- a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts +++ b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts @@ -64,6 +64,8 @@ export class ComboboxComponent // Applies a name attribute to the input. // Useful in forms. + @Input() labelText = ''; + @Input() name: string; // Placeholder text for selector input -- 2.11.0