---
title: "Ext.container.Container"
description: "xtype 为 container 的 Ext JS 原生组件参考。"
---

> Documentation Index
> Fetch the complete documentation index at: https://ag.879818327.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Ext.container.Container

源码定义：`ext-all-debug.js:39804`。分类：容器、面板与窗口。

## 创建示例

```javascript
var component = Ext.create("Ext.container.Container", {
  xtype: "container",
  renderTo: Ext.getBody()
});
```

## 属性

源码中未找到该组件自身声明的可提取配置项；它可能主要继承父类配置。

## 方法

| 方法 | 参数 | 说明 | 调用示例 |
| --- | --- | --- | --- |
| `initComponent` | `` | 初始化组件及其子项。 执行时会保留父类默认行为、更新 `bodyPadding`、`defaults` 状态。源码涉及 `mon()`、`setHeight()`、`getHeight()`、`callParent()`。 | `component.initComponent()` |
| `getChildByElement` | `el, deep` | 读取并返回 `childByElement`。源码涉及 `getRefItems()`。 | `component.getChildByElement(...)` |
| `onDestroy` | `` | 处理 `destroy` 回调。 执行时会保留父类默认行为。源码涉及 `callParent()`。 | `component.onDestroy()` |

## 事件

源码中未找到该组件自身注册的事件；可监听继承事件。

Source: https://ag.879818327.xyz/ext/layout/container-container/index.mdx
