MCPcopy
hub / github.com/angular/components / disableHandle

Method disableHandle

src/cdk/drag-drop/drag-ref.ts:637–642  ·  view source on GitHub ↗

* Sets a handle as disabled. While a handle is disabled, it'll capture and interrupt dragging. * @param handle Handle element that should be disabled.

(handle: HTMLElement)

Source from the content-addressed store, hash-verified

635 * @param handle Handle element that should be disabled.
636 */
637 disableHandle(handle: HTMLElement) {
638 if (!this._disabledHandles.has(handle) && this._handles.indexOf(handle) > -1) {
639 this._disabledHandles.add(handle);
640 toggleNativeDragInteractions(handle, true);
641 }
642 }
643
644 /**
645 * Enables a handle, if it has been disabled.

Callers 1

_setupHandlesListenerMethod · 0.80

Calls 2

addMethod · 0.45

Tested by

no test coverage detected