Skip to content

Commit

Permalink
feat(ui5-combobox): implement icon slot (#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifoosid committed Aug 26, 2020
1 parent 0ada41a commit 8c98e80
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/main/src/ComboBox.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
aria-label="{{ariaLabelText}}"
/>

{{#if icon}}
<slot name="icon"></slot>
{{/if}}

{{#unless readonly}}
<ui5-icon
name="slim-arrow-down"
Expand Down
12 changes: 12 additions & 0 deletions packages/main/src/ComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,18 @@ const metadata = {
valueStateMessage: {
type: HTMLElement,
},

/**
* Defines the icon to be displayed in the input field.
*
* @type {HTMLElement[]}
* @slot
* @public
* @since 1.0.0-rc.9
*/
icon: {
type: HTMLElement,
},
},
events: /** @lends sap.ui.webcomponents.main.ComboBox.prototype */ {
/**
Expand Down

0 comments on commit 8c98e80

Please sign in to comment.