-
Notifications
You must be signed in to change notification settings - Fork 273
/
Copy pathSuggestionGroupItem.js
64 lines (58 loc) · 1.46 KB
/
SuggestionGroupItem.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
import GroupHeaderListItem from "./GroupHeaderListItem.js";
/**
* @public
*/
const metadata = {
tag: "ui5-suggestion-group-item",
properties: /** @lends sap.ui.webcomponents.main.SuggestionGroupItem.prototype */ {
/**
* Defines the text of the <code>ui5-suggestion-group-item</code>.
*
* @type {string}
* @defaultvalue ""
* @public
*/
text: {
type: String,
},
},
slots: /** @lends sap.ui.webcomponents.main.SuggestionGroupItem.prototype */ {
},
events: /** @lends sap.ui.webcomponents.main.SuggestionGroupItem.prototype */ {
},
};
/**
* @class
* The <code>ui5-suggestion-group-item</code> is type of suggestion item,
* that can be used to split the <code>ui5-input</code> suggestions into groups.
*
* @constructor
* @author SAP SE
* @alias sap.ui.webcomponents.main.SuggestionGroupItem
* @extends UI5Element
* @tagname ui5-suggestion-group-item
* @implements sap.ui.webcomponents.main.IInputSuggestionItem
* @public
* @since 1.0.0-rc.15
*/
class SuggestionItem extends UI5Element {
static get metadata() {
return metadata;
}
static get dependencies() {
return [
GroupHeaderListItem,
];
}
/**
* Indicates the "grouping" nature of the component
* to avoid tag name checks tag name to diferenciate from the standard suggestion item.
* @protected
*/
get groupItem() {
return true;
}
}
SuggestionItem.define();
export default SuggestionItem;