icos-cp-draggable
v0.0.2
Published
React draggable component. It provides a 'window' that the user can drag around.
Downloads
5
Readme
#ICOS Carbon Portal Draggable package
##Description React draggable component. It provides a 'window' that the user can drag around.
##Installation
npm install icos-cp-draggable
##Properties to send
dragElementId - Id of element that should react to dragging.
initialPos - Function that calculates initial position.
onStopDrag - Function that handels the current style when user stops dragging element. Use this to save position if the draggabable window is closed so it opens up in the same position.
##Tests None