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

API REFERENCE · OVERLAYS

<dj-trigger-popup>

Clicking the trigger (default slot) opens a <dj-popup> anchored to it, holding the content slot. match-width sizes the popup to the trigger.

Try it in the playground

@dojo-ng/trigger-popup · v0.1.1

npm install @dojo-ng/trigger-popup

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

Properties

PropertyAttributeTypeDefault
open open reflected boolean false
position position reflected "above""below""left""right" "below"
matchWidth match-width boolean true
underlayVisible underlay-visible boolean false

Events

dj-open

Slots

Default slotcontent