(child: GObject, index: number)
| 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) { |
no test coverage detected