@@ -26,9 +26,11 @@ <h1 class="showcase__title">Angular</h1>
2626 [attr.placeholder] ="getPlaceholder() "
2727 igxInput
2828 />
29- < igx-suffix [hidden] ="hideSuffix() ">
30- < igx-icon > face</ igx-icon >
31- </ igx-suffix >
29+ @if (!hideSuffix()) {
30+ < igx-suffix >
31+ < igx-icon > face</ igx-icon >
32+ </ igx-suffix >
33+ }
3234 < igx-hint > Type your web address</ igx-hint >
3335 </ igx-input-group >
3436
@@ -48,9 +50,11 @@ <h1 class="showcase__title">Angular</h1>
4850 [attr.placeholder] ="getPlaceholder() "
4951 igxInput >
5052 </ textarea >
51- < igx-suffix [hidden] ="hideSuffix() ">
52- < igx-icon > face</ igx-icon >
53- </ igx-suffix >
53+ @if (!hideSuffix()) {
54+ < igx-suffix >
55+ < igx-icon > face</ igx-icon >
56+ </ igx-suffix >
57+ }
5458 < igx-hint > Hint text</ igx-hint >
5559 </ igx-input-group >
5660
@@ -68,9 +72,11 @@ <h1 class="showcase__title">Angular</h1>
6872 < igx-hint >
6973 I am a Hint
7074 </ igx-hint >
71- < igx-suffix [hidden] ="hideSuffix() ">
72- < igx-icon > favorite</ igx-icon >
73- </ igx-suffix >
75+ @if (!hideSuffix()) {
76+ < igx-suffix >
77+ < igx-icon > favorite</ igx-icon >
78+ </ igx-suffix >
79+ }
7480 < igx-select-item [value] ="'Apple' " [disabled] ="true "> Apple</ igx-select-item >
7581 < igx-select-item [value] ="'Orange' "> Orange</ igx-select-item >
7682 < igx-select-item [value] ="'Grapes' "> Grapes</ igx-select-item >
@@ -88,7 +94,11 @@ <h1 class="showcase__title">Angular</h1>
8894 < label igxLabel > {{ getLabel() }}</ label >
8995 }
9096 < igx-icon igxPrefix [hidden] ="hidePrefix() "> favorite</ igx-icon >
91- < igx-icon igxSuffix [hidden] ="hideSuffix() "> favorite</ igx-icon >
97+ @if (!hideSuffix()) {
98+ < igx-suffix >
99+ < igx-icon > favorite</ igx-icon >
100+ </ igx-suffix >
101+ }
92102 < igx-hint > Select a unique falsy value</ igx-hint >
93103 </ igx-combo >
94104
@@ -108,9 +118,11 @@ <h1 class="showcase__title">Angular</h1>
108118 [readOnly] ="isReadonly() "
109119 igxInput
110120 />
111- < igx-suffix [hidden] ="hideSuffix() ">
112- < igx-icon > face</ igx-icon >
113- </ igx-suffix >
121+ @if (!hideSuffix()) {
122+ < igx-suffix >
123+ < igx-icon > face</ igx-icon >
124+ </ igx-suffix >
125+ }
114126 < igx-hint > Type your web address</ igx-hint >
115127 </ igx-input-group >
116128 </ form >
@@ -157,7 +169,9 @@ <h1 class="showcase__title">Web components</h1>
157169 [type] ="getNativeInputType() "
158170 [outlined] ="isOutlined() ">
159171 < span slot ="prefix " [hidden] ="hidePrefix() "> < igc-icon name ="face "> </ igc-icon > </ span >
160- < span slot ="suffix " [hidden] ="hideSuffix() "> < igc-icon name ="face "> </ igc-icon > </ span >
172+ @if (!hideSuffix()) {
173+ < span slot ="suffix "> < igc-icon name ="face "> </ igc-icon > </ span >
174+ }
161175 < span slot ="helper-text "> Type your web address</ span >
162176 </ igc-input >
163177
@@ -171,7 +185,9 @@ <h1 class="showcase__title">Web components</h1>
171185 [attr.placeholder] ="getPlaceholder() "
172186 [outlined] ="isOutlined() ">
173187 < span slot ="prefix " [hidden] ="hidePrefix() "> < igc-icon name ="face "> </ igc-icon > </ span >
174- < span slot ="suffix " [hidden] ="hideSuffix() "> < igc-icon name ="face "> </ igc-icon > </ span >
188+ @if (!hideSuffix()) {
189+ < span slot ="suffix "> < igc-icon name ="face "> </ igc-icon > </ span >
190+ }
175191 < span slot ="helper-text "> Hint text</ span >
176192 </ igc-textarea >
177193
@@ -183,7 +199,9 @@ <h1 class="showcase__title">Web components</h1>
183199 [outlined] ="isOutlined() "
184200 [style.--ig-size] ="getSize() ">
185201 < igc-icon slot ="prefix " [hidden] ="hidePrefix() " name ="favorite "> </ igc-icon >
186- < igc-icon slot ="suffix " [hidden] ="hideSuffix() " name ="favorite "> </ igc-icon >
202+ @if (!hideSuffix()) {
203+ < igc-icon slot ="suffix " name ="favorite "> </ igc-icon >
204+ }
187205 < span slot ="helper-text "> I am a Hint</ span >
188206 < igc-select-item [value] ="'Apple' " [disabled] ="true "> Apple</ igc-select-item >
189207 < igc-select-item [value] ="'Orange' " [selected] ="getValue() "> Orange</ igc-select-item >
@@ -199,6 +217,10 @@ <h1 class="showcase__title">Web components</h1>
199217 [disabled] ="isDisabled() "
200218 [style.--ig-size] ="getSize() ">
201219 < span slot ="helper-text "> I am a Hint</ span >
220+ < igc-icon slot ="prefix " [hidden] ="hidePrefix() " name ="favorite "> </ igc-icon >
221+ @if (!hideSuffix()) {
222+ < igc-icon slot ="suffix " name ="favorite "> </ igc-icon >
223+ }
202224 </ igc-combo >
203225
204226
0 commit comments