popover
popover copied to clipboard
Feature: baked-in dragging features
Some api notes
- enable/disable
- snap back to anchor with/without animation
- ~Probably relies on https://github.com/ncsu-sat/popover/issues/9 since dragging is sort of predicated on the idea of interacting with content behind it~ (completed)
This may also work better as a globally positioned popover with draggability as an input
<sat-popover global draggable top="40px" right="40px">
<!-- ... -->
</sat-popover>
It would mean that anchors are optional when global
is specified. Another option would be to make a new component that opens itself wherever in the viewport.
<sat-global-popover #gp [draggable]="movingEnabled" top="40px" right="40px">
<!-- ... -->
</sat-global-popover>
<button (click)="gp.dock()">Return to original position</button>