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

Method cloneNode

src/utils.ts:643–647  ·  view source on GitHub ↗

deep clone the given HTML node, removing teh unique id field

(el: HTMLElement)

Source from the content-addressed store, hash-verified

641
642 /** deep clone the given HTML node, removing teh unique id field */
643 public static cloneNode(el: HTMLElement): HTMLElement {
644 const node = el.cloneNode(true) as HTMLElement;
645 node.removeAttribute('id');
646 return node;
647 }
648
649 public static appendTo(el: HTMLElement, parent: string | HTMLElement): void {
650 let parentNode: HTMLElement;

Callers 3

_createHelperMethod · 0.80
gridstack-spec.tsFile · 0.80
utils-spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected