api.makeDraggable()
Make any DOM element draggable on the board.Signature
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
Full Example
api.makeResizable()
Add a resize handle to any element, allowing the user to resize it by dragging the bottom-right corner.Signature
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.