Context Menu

Displays a menu to the user — such as a set of actions or functions — triggered by a right click.

About

Context Menu is built with the help of Menu from Material CDK and provides a flexible way to offer context-specific actions.

Default

A simple context menu with standard actions and shortcuts.

Right click here

With Icons & Colors

Use icons and colors (like destructive for delete actions) to improve user guidance.

Right click file

Stateful

Use radio items or checkboxes within the menu to control state directly.

Right click here
Current Status: Unsaved Changes

API Reference

Helm API

The Helm directives provide the spartan/ui styling for the context menu.

Component / DirectiveSelectorDescription
HlmContextMenuTrigger[hlmContextMenuTrigger] The trigger that opens the menu on right-click.
Inputs: disabled: boolean, hlmContextMenuTriggerData: any
HlmDropdownMenuhlm-dropdown-menuThe main container for the menu.
HlmDropdownMenuItem[hlmDropdownMenuItem]A single menu item.
HlmDropdownMenuSeparatorhlm-dropdown-menu-separatorSeparator line between menu groups.
HlmDropdownMenuShortcuthlm-dropdown-menu-shortcutDisplay of keyboard shortcuts.

Installation & Usage

Installation

Imports

Basic Skeleton