Documentation Index
Fetch the complete documentation index at: https://empty-ad9a3406.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
api.makeDraggable()
Make any DOM element draggable on the board.Signature
| Parameter | Type | Description |
|---|---|---|
element | HTMLElement | The element to make draggable |
handle | HTMLElement | (Optional) A child element to use as the drag handle. If omitted, the element itself is the handle. |
Behavior
- Drag handle: the element itself, or the specified
handleelement - Positioning: sets
topandleftCSS properties - z-index: set to
Date.now()on drag start (brings to front) - Auto-undock: if the element is docked, dragging undocks it automatically
Events
| Event | When |
|---|---|
plugin:dragstart | Drag begins |
plugin:dragend | Drag ends |
Full Example
api.makeResizable()
Add a resize handle to any element, allowing the user to resize it by dragging the bottom-right corner.Signature
| Parameter | Type | Description |
|---|---|---|
element | HTMLElement | The element to make resizable |
Behavior
- Appends a 14×14px resize handle at the bottom-right corner
- Cursor changes to
nwse-resizeon the handle - Sets
widthandheightCSS properties on drag - The handle does not interfere with the element’s content
Full Example
Both
api.makeDraggable() and api.makeResizable() are automatically called on plugin containers created via api.container.