# Basic configuration
config <- drag_element()
# Custom configuration
config <- drag_element(
key = "my-drag-behavior",
animation = FALSE,
dropEffect = "link",
hideEdge = "both",
shadow = TRUE,
cursor = list(
default = "default",
grab = "grab",
grabbing = "grabbing"
),
enable = JS(
"(e) => {
return e.targetType === 'node' || e.targetType === 'combo';
}"
)
)
Run the code above in your browser using DataLab