MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / _canDrop

Method _canDrop

src/dd-droppable.ts:156–158  ·  view source on GitHub ↗

@internal true if element matches the string/method accept option

(el: HTMLElement)

Source from the content-addressed store, hash-verified

154
155 /** @internal true if element matches the string/method accept option */
156 protected _canDrop(el: HTMLElement): boolean {
157 return el && (!this.accept || this.accept(el));
158 }
159
160 /** @internal */
161 protected _setupAccept(): DDDroppable {

Callers 3

_mouseEnterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected