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

API REFERENCE · OVERLAYS

<dj-context-popup>

Right-click (contextmenu) on the trigger (default slot) opens a <dj-popup> at the cursor, holding the content slot. Emits dj-open when it opens and dj-close (on this element; it does not bubble) when it closes.

Try it in the playground

@dojo-ng/context-popup · v0.1.2

npm install @dojo-ng/context-popup

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

Properties

PropertyAttributeTypeDefault
open open reflected boolean false

Events

dj-opendj-close

Slots

Default slotcontent