Skip to content

Commit b112765

Browse files
authored
feat(ui5-color-palette-popover): implement isOpen method (#3883)
1 parent 75023c1 commit b112765

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/main/src/ColorPalettePopover.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,19 @@ class ColorPalettePopover extends UI5Element {
190190
this.fireEvent("item-click", event.detail);
191191
}
192192

193+
/**
194+
* Returns if the component is opened.
195+
*
196+
* @protected
197+
* @since 1.0.0-rc.16
198+
* @returns {boolean}
199+
*/
200+
isOpen() {
201+
this._respPopover();
202+
203+
return this.responsivePopover.opened;
204+
}
205+
193206
get colorPaletteColors() {
194207
return this.getSlottedNodes("colors");
195208
}

0 commit comments

Comments
 (0)