Skip to content

Commit 0fde573

Browse files
authoredAug 28, 2020
feat(ui5-multi-combobox): implement icon slot (#2140)
1 parent ef525fb commit 0fde573

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
 

‎packages/main/src/MultiComboBox.hbs

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353
aria-describedby="{{valueStateTextId}}"
5454
/>
5555

56+
{{#if icon}}
57+
<slot name="icon"></slot>
58+
{{/if}}
59+
5660
{{#unless readonly}}
5761
<ui5-icon name="slim-arrow-down"
5862
input-icon

‎packages/main/src/MultiComboBox.js

+13
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,19 @@ const metadata = {
6464
type: HTMLElement,
6565
listenFor: { include: ["*"] },
6666
},
67+
68+
/**
69+
* Defines the icon to be displayed in the <code>ui5-multi-combobox</code>.
70+
*
71+
* @type {HTMLElement[]}
72+
* @slot
73+
* @public
74+
* @since 1.0.0-rc.9
75+
*/
76+
icon: {
77+
type: HTMLElement,
78+
},
79+
6780
},
6881
properties: /** @lends sap.ui.webcomponents.main.MultiComboBox.prototype */ {
6982
/**

0 commit comments

Comments
 (0)
Please sign in to comment.