MCPcopy
hub / github.com/mathuo/dockview / push

Method push

packages/dockview-core/src/overlay/overlay.ts:31–38  ·  view source on GitHub ↗
(element: HTMLElement)

Source from the content-addressed store, hash-verified

29 private _orderedList: HTMLElement[] = [];
30
31 push(element: HTMLElement): void {
32 this._orderedList = [
33 ...this._orderedList.filter((item) => item !== element),
34 element,
35 ];
36
37 this.update();
38 }
39
40 destroy(element: HTMLElement): void {
41 this._orderedList = this._orderedList.filter(

Callers 15

createBundleFunction · 0.80
useViewComponentFunction · 0.80
createBundleFunction · 0.80
eventMethod · 0.80
pushToEndFunction · 0.80
rangeFunction · 0.80
findIframesInNodeFunction · 0.80
toClassListFunction · 0.80
addViewMethod · 0.80
distributeViewSizesMethod · 0.80
layoutViewsMethod · 0.80
fromJSONMethod · 0.80

Calls 1

updateMethod · 0.95

Tested by 8

makeFakeExternalWindowFunction · 0.64
layoutMethod · 0.64
constructorMethod · 0.64
setupMockWindowFunction · 0.64
createComponentFunction · 0.64
walkFunction · 0.64
disposeFunction · 0.64
simulateDropOnTabFunction · 0.64