(child: QWidget<any>, beforeChild: QWidget<any>)
| 228 | setViewProps(this, newProps, oldProps); |
| 229 | } |
| 230 | insertBefore(child: QWidget<any>, beforeChild: QWidget<any>): void { |
| 231 | if (!this.layout() || child instanceof QDialog) { |
| 232 | !this.layout() && console.warn("parent has no layout to insert child before another child"); |
| 233 | return; |
| 234 | } |
| 235 | (this.layout() as FlexLayout).insertChildBefore(child, beforeChild); |
| 236 | } |
| 237 | static tagName = "view"; |
| 238 | appendInitialChild(child: QWidget<any>): void { |
| 239 | this.appendChild(child); |