Sunday, March 12, 2017

Sencha Touch - Layout

Layout is the way the elements are arranged in a container. That could be horizontal, vertical or any other. Sencha Touch has different layout defined in its library but we can always write custom layouts as well.

S.N. Layout & Description
1 hBox This layout allows the element to be distributed in the horizontal manner.
2 vBox This layout allows the element to be distributed in the vertical manner. This is one of the mostly 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 different component.

No comments:

Post a Comment