Dojo NG is being built in the open, one section at a time — follow along on Heptapod.

API REFERENCE · OVERLAYS

<dj-context-menu>

Right-click the trigger (default slot) to open a menu of options; emits dj-select with the value.

Try it in the playground

@dojo-ng/context-menu · v0.1.1

npm install @dojo-ng/context-menu

import "@dojo-ng/context-menu";

Properties

PropertyAttributeTypeDefault
options options ListOption[] []

Events

dj-select

Slots

Default slot

Types

The types that the properties above use, as they are declared in the source.

ListOption from @dojo-ng/list

export interface ListOption { value: string; label: string; disabled?: boolean; divider?: boolean; }