Skip to content

Other - Separate contexts

Each BdndProvider is a drag context of its own: its draggables are seen by its drop targets only. Every note on this page has the same type, "note", and every bin accepts it - yet a note of board A cannot go into board B's bin: each board has a provider, and while a note is in the air only the bins of its own context light up (CanDrop), and the keyboard only visits those. The corner of board A has a provider nested in A's: it ignores A's notes, and A's bin ignores its note. Two providers given the same Manager, on the other hand, are one context however far apart they are on the page: the shelf at the top and the tray at the bottom share one, and notes move between them.

One provider each

Board A

A1
A2
Bin A: empty

A nested provider

Nested
Nested bin: empty

Board B

B1
B2
Bin B: empty

One manager, two providers

Shelf

S1
S2
S3

This line is outside both providers: what holds the shelf and the tray together is the BdndDragDropManager the page hands to each of them.

Tray

Empty
An unhandled error has occurred. Reload 🗙