📜  Sencha Touch-布局

📅  最后修改于: 2020-10-19 03:05:44             🧑  作者: Mango


布局是元素在容器中的排列方式。那可以是水平的,垂直的或任何其他形式。尽管我们总是可以编写自定义布局,但Sencha Touch在其库中定义了不同的布局。

Sr.No. Layout & Description
1 hBox

This layout allows the element to be distributed in a horizontal manner.

2 vBox

This layout allows the element to be distributed in a vertical manner. This is one of the commonly used layout.

3 Fit

In this layout, the container is filled with a single panel and when there is no specific requirement related to the layout, then this layout is used.

4 Card(TabPanel)

This layout arranges different components in tab fashion. Tabs will be displayed on top of the container. Every time only one tab is visible and each tab is considered as a different component.