MCPcopy Create free account
hub / github.com/angular/components / getVisibleElement

Method getVisibleElement

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

* Gets the currently-visible element that represents the drag item. * While dragging this is the placeholder, otherwise it's the root element.

()

Source from the content-addressed store, hash-verified

446 * While dragging this is the placeholder, otherwise it's the root element.
447 */
448 getVisibleElement(): HTMLElement {
449 return this.isDragging() ? this.getPlaceholderElement() : this.getRootElement();
450 }
451
452 /** Registers the handles that can be used to drag the element. */
453 withHandles(handles: (HTMLElement | ElementRef<HTMLElement>)[]): this {

Callers 4

_draggingStartedMethod · 0.80
getSortedItemsMethod · 0.80
_cacheItemPositionsMethod · 0.80

Calls 3

isDraggingMethod · 0.95
getPlaceholderElementMethod · 0.95
getRootElementMethod · 0.95

Tested by

no test coverage detected