Clear Up
SharpKit Reference

Panel Class

Namespace: Ext.tab

Constructors

Name Description
Panel(PanelConfig)
Panel()

Properties

Name Description
ActiveItem
alternateClassName
extend Tab Panels are a great way to allow the user to switch between several pages that are all full screen. Each Component in the Tab Panel gets its own Tab, which shows the Component when tapped on. Tabs can be positioned at the top or the bottom of the Tab Panel, and can optionally accept title and icon configurations. Here's how we can set up a simple Tab Panel with tabs at the bottom. Use the controls at the top left of the example to toggle between code mode and live preview mode (you can also edit the code and see your changes in the live preview): @example preview Ext.create('Ext.TabPanel', { fullscreen: true, tabBarPosition: 'bottom', defaults: { styleHtmlContent: true }, items: [ { title: 'Home', iconCls: 'home', html: 'Home Screen' }, { title: 'Contact', iconCls: 'user', html: 'Contact Screen' } ] }); One tab was created for each of the {@link Ext.Panel panels} defined in the items array. Each tab automatically uses the title and icon defined on the item configuration, and switches to that item when tapped on. We can also position the tab bar at the top, which makes our Tab Panel look like this: @example preview Ext.create('Ext.TabPanel', { fullscreen: true, defaults: { styleHtmlContent: true }, items: [ { title: 'Home', html: 'Home Screen' }, { title: 'Contact', html: 'Contact Screen' } ] });

Methods

Name Description
applyTabBar(object) Creates a new {@link Ext.tab.Bar} instance using {@link Ext.Factory}. @private
doActiveItemChange(object) Updates the {@link #tabBar} instance with the new {@link Ext.tab.Bar#activeTab}.
doTabChange(object, object, object) Updates this container with the new active item.
initialize()
onAdd(object)
setActiveItem(object)
updateTabBar(object) Adds the new {@link Ext.tab.Bar} instance into this container. @private
updateTabBarPosition(object) Updates the docked position of the {@link #tabBar}. @private
updateUi(object, object) Updates the Ui for this component and the {@link #tabBar}.
© Copyright 2005-2011 SharpKit. All rights reserved.