File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,12 @@ import PopoverCss from "./generated/themes/Popover.css.js";
15
15
16
16
const arrowSize = 8 ;
17
17
18
+ /**
19
+ * @public
20
+ */
18
21
const metadata = {
19
22
tag : "ui5-popover" ,
20
- properties : /** @lends sap.ui.webcomponents.main.Popover.prototype */ {
23
+ properties : /** @lends sap.ui.webcomponents.main.Popover.prototype */ {
21
24
/**
22
25
* Defines the ID of the HTML Element, which will get the initial focus.
23
26
*
@@ -154,7 +157,7 @@ const metadata = {
154
157
155
158
_maxContentHeight : { type : Integer } ,
156
159
} ,
157
- slots : {
160
+ slots : /** @lends sap.ui.webcomponents.main.Popover.prototype */ {
158
161
/**
159
162
* Defines the content of the Web Component.
160
163
* @type {Node[] }
@@ -187,7 +190,7 @@ const metadata = {
187
190
type : HTMLElement ,
188
191
} ,
189
192
} ,
190
- events : {
193
+ events : /** @lends sap.ui.webcomponents.main.Popover.prototype */ {
191
194
/**
192
195
* Fired before the component is opened.
193
196
*
@@ -297,6 +300,11 @@ class Popover extends UI5Element {
297
300
return event . target === this . _opener ;
298
301
}
299
302
303
+ /**
304
+ * Opens the popover.
305
+ * @param {HTMLElement } opener the element that the popover is opened by
306
+ * @public
307
+ */
300
308
openBy ( opener ) {
301
309
if ( ! opener || this . opened ) {
302
310
return ;
@@ -316,9 +324,7 @@ class Popover extends UI5Element {
316
324
}
317
325
318
326
/**
319
- *
320
- * @param {* } escPressed
321
- * @param {* } preventRegitryUpdate
327
+ * Closes the popover.
322
328
* @public
323
329
*/
324
330
close ( escPressed = false , preventRegitryUpdate = false ) {
You can’t perform that action at this time.
0 commit comments