Skip to content
Open
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
9 changes: 9 additions & 0 deletions packages/main/src/Menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import {

// Styles
import menuCss from "./generated/themes/Menu.css.js";
import type PopoverVerticalAlign from "./types/PopoverVerticalAlign.js";

const MENU_OPEN_DELAY = 300;

Expand Down Expand Up @@ -208,6 +209,14 @@ class Menu extends UI5Element {
@property()
horizontalAlign: `${PopoverHorizontalAlign}` = "Start";

/**
* Determines the vertical alignment of the menu relative to its opener control.
* @default "Start"
* @public
*/
@property()
verticalAlign: `${PopoverVerticalAlign}` = "Bottom";

/**
* Defines if a loading indicator would be displayed inside the corresponding ui5-menu popover.
* @default false
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 @@ -11,7 +11,7 @@ export default function MenuTemplate(this: Menu) {
id={`${this._id}-menu-rp`}
class="ui5-menu-rp"
placement="Bottom"
verticalAlign="Bottom"
verticalAlign={this.verticalAlign}
horizontalAlign={this.horizontalAlign}
opener={this.opener}
open={this.open}
Expand Down
Loading