I have a drag and drop dialog, and I would like to set the drag and drop options, I do not know how to do this.
Here is an example. In the red box there is a cursorAt option with { top: 0, left: 0 } . I would like to do the same with drag and drop dialog.
cursorAt
{ top: 0, left: 0 }
To change the drag and drop options of a dialog box widget, you can refer to it as follows:
$("#myDialog").dialog("widget").draggable("option", "cursorAt", { top: 0, left: 0 });
You can do the same with resizing options.
Just add the drag and drop to the dialog:
$("#draggable, #dialog").draggable({ cursorAt: { top: 0, left: 0 } });
You can set properties that you can drag to any item that you can drag.
Source: https://habr.com/ru/post/886159/More articles:When is virtual inheritance a good idea? - c ++Check browser localization with selenium webdriver - localizationRound UP C # TimeSpan up to 5 minutes - c #Is typedef a definition? - c ++How to deal with Rounding-Off TimeSpan? - c #Why am I getting height and width 0? - c #How to detect in a subprocess when a parent process has died? - pythoniPad 3rd-party calendar component - ipadHow to show menu button on Android 3.0? - androidDjango Modelform (with field excluded) - djangoAll Articles