MCPcopy Create free account
hub / github.com/ElemeFE/element-react / insertAfter

Method insertAfter

src/tree/model/node.js:177–184  ·  view source on GitHub ↗
(child, ref)

Source from the content-addressed store, hash-verified

175 }
176
177 insertAfter(child, ref) {
178 let index;
179 if (ref) {
180 index = this.childNodes.indexOf(ref);
181 if (index !== -1) index += 1;
182 }
183 this.insertChild(child, index);
184 }
185
186 removeChild(child) {
187 const index = this.childNodes.indexOf(child);

Callers

nothing calls this directly

Calls 1

insertChildMethod · 0.95

Tested by

no test coverage detected