Function to toggle the drag events on the Carousel
The id of the Carousel element
Whether dragging is enabled
the API response envelope as a JSON string: { code, isSuccess, message, value? }
{ code, isSuccess, message, value? }
Function to toggle the drag events on the Carousel