Clear Up
SharpKit Reference

ContainerConfig Class

Namespace: Ext

Constructors

Name Description
ContainerConfig()

Properties

Name Description
activeItem The item from the {@link #items} collection that will be active first. This is usually only meaningful in a {@link Ext.layout.Card card layout}, where only one item can be active at a time @accessor @evented
autoDestroy If true, child items will be destroyed as soon as they are {@link #remove removed} from this container @accessor
defaults A set of default configurations to apply to all child Components in this Container. It's often useful to specify defaults when creating more than one items with similar configurations. For example here we can specify that each child is a panel and avoid repeating the xtype declaration for each one: * Ext.create('Ext.Container', { defaults: { xtype: 'panel' }, items: [ { html: 'Panel 1' }, { html: 'Panel 2' } ] }); * @accessor
items The child items to add to this Container. This is usually an array of Component configurations or instances, for example: * Ext.create('Ext.Container', { items: [ { xtype: 'panel', html: 'This is an item' } ] }); @accessor
layout Configuration for this Container's layout. Example: * Ext.create('Ext.Container', { layout: { type: 'hbox', align: 'middle' }, items: [ { xtype: 'panel', flex: 1, style: 'background-color: red;' }, { xtype: 'panel', flex: 2, style: 'background-color: green' } ] }); * See the layouts guide for more information * @accessor
scrollable Configuration options to make this Container scrollable @accessor
© Copyright 2005-2011 SharpKit. All rights reserved.