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
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@uifabric/experiments",
"comment": "Button: Making all MenuButton props optional.",
"type": "minor"
}
],
"packageName": "@uifabric/experiments",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface IMenuButtonSlots extends IButtonSlots {
/**
* Defines the contextual menu that appears when you click on the MenuButton.
*/
menu: IContextualMenuSlot;
menu?: IContextualMenuSlot;

/**
* Defines the menu chevron icon that is displayed insisde the MenuButton.
Expand Down Expand Up @@ -65,12 +65,12 @@ export interface IMenuButtonViewProps extends Pick<IButtonViewProps, 'buttonRef'
/**
* Defines a callback that runs after the MenuButton's contextual menu has been closed (removed from the DOM).
*/
onMenuDismiss: () => void;
onMenuDismiss?: () => void;

/**
* Defines the target that the contextual menu uses to position itself.
*/
menuTarget: HTMLElement | undefined;
menuTarget?: HTMLElement | undefined;
}

export interface IMenuButtonTokens extends IButtonTokens {}
Expand Down