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

Method removeItem

packages/fairygui/src/widgets/PopupMenu.ts:231–239  ·  view source on GitHub ↗

* Remove item by name * 通过名称移除菜单项

(name: string)

Source from the content-addressed store, hash-verified

229 * 通过名称移除菜单项
230 */
231 public removeItem(name: string): boolean {
232 const item = this._list.getChild(name);
233 if (item) {
234 const index = this._list.getChildIndex(item);
235 this._list.removeChildToPoolAt(index);
236 return true;
237 }
238 return false;
239 }
240
241 /**
242 * Clear all items

Callers 7

clearLayoutStorageFunction · 0.80
logoutMethod · 0.80
loadTokenMethod · 0.80
scheduleRetryLoadUserMethod · 0.80
initializeMethod · 0.80
signOutMethod · 0.80
removeStorageSyncMethod · 0.80

Calls 3

getChildIndexMethod · 0.80
removeChildToPoolAtMethod · 0.80
getChildMethod · 0.45

Tested by

no test coverage detected