Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
блочный > BlockSvg > setDragStrategy
Метод BlockSvg.setDragStrategy()
Устанавливает стратегию перетаскивания для этого блока.
Подпись:
setDragStrategy(dragStrategy: IDragStrategy): void;
Параметры
Возврат:
пустота
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-10 UTC.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-01-10 UTC."],[[["The `setDragStrategy` method allows you to define how a block behaves when dragged."],["It accepts an `IDragStrategy` object as input to control the dragging behavior."],["Calling this method assigns the specified drag strategy to the current block."]]],["The `setDragStrategy()` method, part of the `BlockSvg` class, configures the drag behavior of a block. It accepts a single parameter, `dragStrategy`, which is of type `IDragStrategy`. This parameter dictates the specific strategy to be used when dragging the block. The method modifies the block's behavior and doesn't return any value.\n"]]