FileMenuSettings

10 Oct 20251 minute to read

Defines the ribbon file menu settings.

Properties

animationSettings MenuAnimationSettingsModel

Specifies the animation settings for the sub menu open/close.

Defaults to ’’

itemTemplate string|Function

Specifies the template for file menu item.

Defaults to ’’

keyTip string

Specifies the keytip content.

Defaults to ’’

Defines the list of menu items for the file menu.

Defaults to []

popupTemplate string|HTMLElement

Specifies the custom content for the file menu popup.

Defaults to ’’

ribbonTooltipSettings RibbonTooltipModel

Specifies the tooltip settings for the file menu button.

Defaults to {}

showItemOnClick boolean

Specifies whether to show the sub menu or not on click.
When set to true, the sub menu will open only on mouse click.

Defaults to false

text string

Defines the text content of file menu button.

Defaults to ‘File’

visible boolean

Defines whether to show the file menu button.

Defaults to false

Events

beforeClose EmitType<FileMenuBeforeOpenCloseEventArgs>

Event triggers before closing the file menu popup.

beforeItemRender EmitType<FileMenuEventArgs>

Event triggers while rendering each ribbon file menu item.

beforeOpen EmitType<FileMenuBeforeOpenCloseEventArgs>

Event triggers before opening the file menu popup.

close EmitType<FileMenuOpenCloseEventArgs>

Event triggers when file menu popup is closed.

open EmitType<FileMenuOpenCloseEventArgs>

Event triggers when file menu popup is opened.

select EmitType<FileMenuEventArgs>

Event triggers while selecting an item in ribbon file menu.