Skip to content

Commit 8c98e80

Browse files
authored
feat(ui5-combobox): implement icon slot (#2139)
1 parent 0ada41a commit 8c98e80

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

packages/main/src/ComboBox.hbs

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
aria-label="{{ariaLabelText}}"
2626
/>
2727

28+
{{#if icon}}
29+
<slot name="icon"></slot>
30+
{{/if}}
31+
2832
{{#unless readonly}}
2933
<ui5-icon
3034
name="slim-arrow-down"

packages/main/src/ComboBox.js

+12
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,18 @@ const metadata = {
267267
valueStateMessage: {
268268
type: HTMLElement,
269269
},
270+
271+
/**
272+
* Defines the icon to be displayed in the input field.
273+
*
274+
* @type {HTMLElement[]}
275+
* @slot
276+
* @public
277+
* @since 1.0.0-rc.9
278+
*/
279+
icon: {
280+
type: HTMLElement,
281+
},
270282
},
271283
events: /** @lends sap.ui.webcomponents.main.ComboBox.prototype */ {
272284
/**

0 commit comments

Comments
 (0)