Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions packages/main/src/Menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { isInstanceOfMenuItem } from "./MenuItem.js";
import { isInstanceOfMenuItemGroup } from "./MenuItemGroup.js";
import { isInstanceOfMenuSeparator } from "./MenuSeparator.js";
import type PopoverHorizontalAlign from "./types/PopoverHorizontalAlign.js";
import type PopoverPlacement from "./types/PopoverPlacement.js";
import type {
ListItemClickEventDetail,
} from "./List.js";
Expand Down Expand Up @@ -200,6 +201,15 @@ class Menu extends UI5Element {
@property({ type: Boolean })
open = false;

/**
* Determines on which side the component is placed at.
* @default "Bottom"
* @public
* @since 2.16.0
*/
@property()
placement: `${PopoverPlacement}` = "Bottom";

/**
* Determines the horizontal alignment of the menu relative to its opener control.
* @default "Start"
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/MenuTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function MenuTemplate(this: Menu) {
<ResponsivePopover
id={`${this._id}-menu-rp`}
class="ui5-menu-rp"
placement="Bottom"
placement={this.placement}
verticalAlign="Bottom"
horizontalAlign={this.horizontalAlign}
opener={this.opener}
Expand Down
Loading