MCPcopy Create free account
hub / github.com/esengine/esengine / addChildAt

Method addChildAt

packages/fairygui/src/widgets/GList.ts:220–230  ·  view source on GitHub ↗
(child: GObject, index: number)

Source from the content-addressed store, hash-verified

218 // Item operations
219
220 public addChildAt(child: GObject, index: number): GObject {
221 super.addChildAt(child, index);
222
223 if (child instanceof GButton) {
224 child.selected = false;
225 child.changeStateOnClick = false;
226 }
227 child.on(FGUIEvents.CLICK, this._onClickItem, this);
228
229 return child;
230 }
231
232 public addItem(url?: string): GObject | null {
233 if (!url) {

Callers 5

addChildFunction · 0.45
addItemAtMethod · 0.45
replaceMeMethod · 0.45
addBeforeMeMethod · 0.45
addAfterMeMethod · 0.45

Calls 1

onMethod · 0.45

Tested by

no test coverage detected