Properties Methods Events Config Options Direct Link
Observable
  Component

Class CQ.Ext.Component

Package:CQ.Ext
Class:Component
Subclasses:BoxComponent, ColorPalette, DatePicker, Editor, PivotAxis, BaseItem, Highlight, EditRollover
Extends:CQ.Ext.util.Observable
Clientlib:cq.widgets
xtype:component

Base class for all Ext components. All subclasses of Component may participate in the automated Ext component lifecycle of creation, rendering and destruction which is provided by the Container class. Components may be added to a Container through the items config option at the time the Container is created, or they may be added dynamically via the add method.

The Component base class has built-in support for basic hide/show and enable/disable behavior.

All Components are registered with the CQ.Ext.ComponentMgr on construction so that they can be referenced at any time via CQ.Ext.getCmp, passing the id.

All user-developed visual widgets that are required to participate in automated lifecycle and size management should subclass Component (or CQ.Ext.BoxComponent if managed box model handling is required, ie height and width management).

See the Creating new UI controls tutorial for details on how and to either extend or augment ExtJs base classes to create custom Components.

Every component has a specific xtype, which is its Ext-specific type name, along with methods for checking the xtype like getXType and isXType. This is the list of all valid xtypes:

xtype            Class
-------------    ------------------
box              CQ.Ext.BoxComponent
button           CQ.Ext.Button
buttongroup      CQ.Ext.ButtonGroup
colorpalette     CQ.Ext.ColorPalette
component        CQ.Ext.Component
container        CQ.Ext.Container
cycle            CQ.Ext.CycleButton
dataview         CQ.Ext.DataView
datepicker       CQ.Ext.DatePicker
editor           CQ.Ext.Editor
editorgrid       CQ.Ext.grid.EditorGridPanel
flash            CQ.Ext.FlashComponent
grid             CQ.Ext.grid.GridPanel
listview         CQ.Ext.list.ListView
multislider      CQ.Ext.slider.MultiSlider
panel            CQ.Ext.Panel
progress         CQ.Ext.ProgressBar
propertygrid     CQ.Ext.grid.PropertyGrid
slider           CQ.Ext.slider.SingleSlider
spacer           CQ.Ext.Spacer
splitbutton      CQ.Ext.SplitButton
tabpanel         CQ.Ext.TabPanel
treepanel        CQ.Ext.tree.TreePanel
viewport         CQ.Ext.ViewPort
window           CQ.Ext.Window

Toolbar components
---------------------------------------
paging           CQ.Ext.PagingToolbar
toolbar          CQ.Ext.Toolbar
tbbutton         CQ.Ext.Toolbar.Button        (deprecated; use button)
tbfill           CQ.Ext.Toolbar.Fill
tbitem           CQ.Ext.Toolbar.Item
tbseparator      CQ.Ext.Toolbar.Separator
tbspacer         CQ.Ext.Toolbar.Spacer
tbsplit          CQ.Ext.Toolbar.SplitButton   (deprecated; use splitbutton)
tbtext           CQ.Ext.Toolbar.TextItem

Menu components
---------------------------------------
menu             CQ.Ext.menu.Menu
colormenu        CQ.Ext.menu.ColorMenu
datemenu         CQ.Ext.menu.DateMenu
menubaseitem     CQ.Ext.menu.BaseItem
menucheckitem    CQ.Ext.menu.CheckItem
menuitem         CQ.Ext.menu.Item
menuseparator    CQ.Ext.menu.Separator
menutextitem     CQ.Ext.menu.TextItem

Form components
---------------------------------------
form             CQ.Ext.form.FormPanel
checkbox         CQ.Ext.form.Checkbox
checkboxgroup    CQ.Ext.form.CheckboxGroup
combo            CQ.Ext.form.ComboBox
compositefield   CQ.Ext.form.CompositeField
datefield        CQ.Ext.form.DateField
displayfield     CQ.Ext.form.DisplayField
field            CQ.Ext.form.Field
fieldset         CQ.Ext.form.FieldSet
hidden           CQ.Ext.form.Hidden
htmleditor       CQ.Ext.form.HtmlEditor
label            CQ.Ext.form.Label
numberfield      CQ.Ext.form.NumberField
radio            CQ.Ext.form.Radio
radiogroup       CQ.Ext.form.RadioGroup
textarea         CQ.Ext.form.TextArea
textfield        CQ.Ext.form.TextField
timefield        CQ.Ext.form.TimeField
trigger          CQ.Ext.form.TriggerField

Chart components
---------------------------------------
chart            CQ.Ext.chart.Chart
barchart         CQ.Ext.chart.BarChart
cartesianchart   CQ.Ext.chart.CartesianChart
columnchart      CQ.Ext.chart.ColumnChart
linechart        CQ.Ext.chart.LineChart
piechart         CQ.Ext.chart.PieChart

Store xtypes
---------------------------------------
arraystore       CQ.Ext.data.ArrayStore
directstore      CQ.Ext.data.DirectStore
groupingstore    CQ.Ext.data.GroupingStore
jsonstore        CQ.Ext.data.JsonStore
simplestore      CQ.Ext.data.SimpleStore      (deprecated; use arraystore)
store            CQ.Ext.data.Store
xmlstore         CQ.Ext.data.XmlStore

Config Options

Config Options Defined By
  allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
  disabled : Boolean
Render this component disabled (default is false).
Component
  disabledClass : String
CSS class added to the component when it is disabled (defaults to 'x-item-disabled').
Component

Public Properties

Property Defined By
  disabled : Boolean
True if this component is disabled. Read-only.
Component
  hidden : Boolean
True if this component is hidden. Read-only.
Component
  initialConfig : Object
This Component's initial configuration specification. Read-only.
Component
  refOwner : CQ.Ext.Container The
Component
  rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

Method Defined By

Public Events

Event Defined By