Class type Ext_grid_header_Container.t


class type t = object .. end
Inherits
method isGroupHeader : bool Js.t Js.prop

True if this HeaderContainer is in fact a group header which contains sub headers.


method getColumnCount : unit Js.meth

Returns the number of grid columns descended from this HeaderContainer. Group Columns are HeaderContainers. All grid columns are returned, including hidden ones.


method getColumnMenu : 'a. 'a Js.t -> unit Js.meth

Returns an array of menu CheckItems corresponding to all immediate children of the passed Container which have been configured as hideable.

Parameters:


method getFullWidth : unit Js.meth

Gets the full width of all columns that are visible.


method getGridColumns : 'b 'c 'd. 'b Js.t -> 'c Js.t -> 'd Js.js_array Js.t Js.meth

Returns an array of all columns which appear in the grid's View. This goes down to the leaf column header level, and does not return grouped headers which contain sub headers.

It includes hidden headers even though they are not rendered. This is for collection of menu items for the column hide/show menu.

Headers which have a hidden ancestor have a hiddenAncestor: true property injected so that they can also be rendered at zero width without interrogating that header's ownerCt axis for a hidden ancestor.

Parameters:


method getHeaderAtIndex : Js.number Js.t -> unit Js.meth

Get a leaf level header by index regardless of what the nesting structure is.

Parameters:


method getHeaderIndex : (< _isLayoutRoot : bool Js.t Js.prop;
add : 'g 'h. 'g Js.t -> 'h Js.t Js.meth; addChildEls : unit Js.meth;
addCls : 'i. 'i Js.t -> 'f Js.t Js.meth;
addClsWithUI : 'j 'k. 'j Js.t -> 'k Js.t -> unit Js.meth;
addEvents : 'l. 'l Js.t -> unit Js.meth;
addListener : 'm 'n 'o 'p 'q.
'm Js.t ->
'n Js.callback Js.optdef ->
'o Js.t Js.optdef -> 'p Js.t Js.optdef -> 'q Js.t Js.meth;
addManagedListener : 'r 's 't 'u 'v 'w.
'r Js.t ->
's Js.t ->
't Js.callback Js.optdef ->
'u Js.t Js.optdef ->
'v Js.t Js.optdef -> 'w Js.t Js.meth;
addPropertyToState : 'x.
'x Js.t ->
Js.js_string Js.t ->
Js.js_string Js.t Js.optdef -> bool Js.t Js.meth;
addStateEvents : 'y. 'y Js.t -> unit Js.meth;
addUIClsToElement : Js.js_string Js.t -> unit Js.meth;
afterComponentLayout : 'z 'a1.
Js.number Js.t ->
Js.number Js.t ->
'z Js.t -> 'a1 Js.t -> unit Js.meth;
afterHide : 'b1 'c1.
'b1 Js.callback Js.optdef ->
'c1 Js.t Js.optdef -> unit Js.meth;
afterLayout : 'd1.
(#Ext_layout_container_Container.t as 'd1) Js.t ->
unit Js.meth;
afterRender : unit Js.meth;
afterSetPosition : Js.number Js.t -> Js.number Js.t -> unit Js.meth;
afterShow : 'e1 'f1 'g1.
'e1 Js.t Js.optdef ->
'f1 Js.callback Js.optdef ->
'g1 Js.t Js.optdef -> unit Js.meth;
alignTo : 'h1 'i1.
'h1 Js.t ->
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
'i1 Js.t Js.optdef -> 'f Js.t Js.meth;
anchorTo : 'j1 'k1 'l1 'm1.
'j1 Js.t ->
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
'k1 Js.t Js.optdef ->
'l1 Js.t Js.optdef ->
'm1 Js.callback Js.optdef -> 'f Js.t Js.meth;
animate : 'n1 'o1. 'n1 Js.t -> 'o1 Js.t Js.meth;
applyState : 'p1. 'p1 Js.t -> unit Js.meth;
beforeBlur : Ext_EventObject.t Js.t -> unit Js.meth;
beforeComponentLayout : Js.number Js.t -> Js.number Js.t -> unit Js.meth;
beforeDestroy : unit Js.meth;
beforeFocus : Ext_EventObject.t Js.t -> unit Js.meth;
beforeLayout : unit Js.meth; beforeShow : unit Js.meth;
bubble : 'q1 'r1 's1.
'q1 Js.callback ->
'r1 Js.t Js.optdef ->
's1 Js.js_array Js.t Js.optdef -> 'f Js.t Js.meth;
calculateConstrainedPosition : 't1.
't1 Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
bool Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.meth;
callParent : 'u1 'v1. 'u1 Js.t -> 'v1 Js.t Js.meth;
callSuper : 'w1 'x1. 'w1 Js.t -> 'x1 Js.t Js.meth;
cancelFocus : unit Js.meth;
cascade : 'y1 'z1 'a2.
'y1 Js.callback ->
'z1 Js.t Js.optdef ->
'a2 Js.js_array Js.t Js.optdef -> 'f Js.t Js.meth;
center : 'b2. 'b2 Js.t Js.meth;
child : 'c2 'd2. 'c2 Js.t Js.optdef -> 'd2 Js.t Js.meth;
clearListeners : unit Js.meth; clearManagedListeners : unit Js.meth;
cloneConfig : 'e2. 'e2 Js.t -> 'f Js.t Js.meth;
contains : 'f2.
(#Ext_Component.t as 'f2) Js.t ->
bool Js.t Js.optdef -> bool Js.t Js.meth;
contentPaddingProperty : Js.js_string Js.t Js.prop;
destroy : unit Js.meth; disable : bool Js.t Js.optdef -> unit Js.meth;
disable_chainable : bool Js.t Js.optdef -> 'f Js.t Js.meth;
doAutoRender : unit Js.meth; doComponentLayout : 'g2. 'g2 Js.t Js.meth;
doConstrain : 'h2. 'h2 Js.t Js.optdef -> unit Js.meth;
doLayout : 'f Js.t Js.meth;
down : 'i2 'j2. 'i2 Js.t Js.optdef -> 'j2 Js.t Js.meth;
draggable : bool Js.t Js.readonly_prop;
enable : bool Js.t Js.optdef -> unit Js.meth;
enableBubble : 'k2. 'k2 Js.t -> unit Js.meth;
ensureAttachedToBody : bool Js.t Js.optdef -> unit Js.meth;
findParentBy : 'l2 'm2. 'l2 Js.callback -> 'm2 Js.t Js.meth;
findParentByType : 'n2 'o2. 'n2 Js.t -> 'o2 Js.t Js.meth;
findPlugin : Js.js_string Js.t -> Ext_AbstractPlugin.t Js.t Js.meth;
fireEvent : 'p2. Js.js_string Js.t -> 'p2 Js.t -> bool Js.t Js.meth;
fireEventArgs : 'q2.
Js.js_string Js.t ->
'q2 Js.t Js.js_array Js.t -> bool Js.t Js.meth;
floatParent : 'r2. 'r2 Js.t Js.readonly_prop;
focus : 's2 't2 'u2.
bool Js.t Js.optdef ->
's2 Js.t Js.optdef ->
't2 Js.callback Js.optdef ->
'u2 Js.callback Js.optdef -> 'f Js.t Js.meth;
frameSize : 'v2. 'v2 Js.t Js.readonly_prop;
getActiveAnimation : 'w2. 'w2 Js.t Js.meth;
getAlignToXY : 'x2.
'x2 Js.t ->
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.meth;
getAnchorXY : 'y2.
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef ->
'y2 Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.meth;
getBox : 'z2.
bool Js.t Js.optdef -> bool Js.t Js.optdef -> 'z2 Js.t Js.meth;
getBubbleTarget : 'a3. 'a3 Js.t Js.meth;
getChildByElement : 'b3 'c3.
'b3 Js.t ->
bool Js.t -> (#Ext_Component.t as 'c3) Js.t Js.meth;
getColumnCount : unit Js.meth;
getColumnMenu : 'a. 'a Js.t -> unit Js.meth;
getComponent : 'd3 'e3. 'd3 Js.t -> (#Ext_Component.t as 'e3) Js.t Js.meth;
getConstrainVector : 'f3 'g3.
'f3 Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
'g3 Js.t Js.meth;
getEl : Ext_dom_Element.t Js.t Js.meth; getFullWidth : unit Js.meth;
getGridColumns : 'b 'c 'd.
'b Js.t -> 'c Js.t -> 'd Js.js_array Js.t Js.meth;
getHeaderAtIndex : Js.number Js.t -> unit Js.meth; getHeaderIndex : 'e;
getHeight : Js.number Js.t Js.meth; getId : Js.js_string Js.t Js.meth;
getInitialConfig : 'h3. Js.js_string Js.t Js.optdef -> 'h3 Js.t Js.meth;
getInsertPosition : 'i3. 'i3 Js.t -> Dom_html.element Js.t Js.meth;
getItemId : Js.js_string Js.t Js.meth;
getLayout : 'j3. (#Ext_layout_container_Container.t as 'j3) Js.t Js.meth;
getLoader : Ext_ComponentLoader.t Js.t Js.meth;
getLocalX : Js.number Js.t Js.meth;
getLocalXY : Js.number Js.t Js.js_array Js.t Js.meth;
getLocalY : Js.number Js.t Js.meth;
getMenuItems : 'k3. 'k3 Js.js_array Js.t Js.meth;
getOffsetsTo : 'l3. 'l3 Js.t -> Js.number Js.t Js.js_array Js.t Js.meth;
getPlugin : Js.js_string Js.t -> Ext_AbstractPlugin.t Js.t Js.meth;
getPosition : bool Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.meth;
getRefItems : 'm3. 'm3 Js.t -> unit Js.meth;
getRegion : Ext_util_Region.t Js.t Js.meth;
getSize : 'n3. 'n3 Js.t Js.meth;
getSizeModel : 'o3 'p3. 'o3 Js.t -> 'p3 Js.t Js.meth;
getState : 'q3. 'q3 Js.t Js.meth;
getViewRegion : Ext_util_Region.t Js.t Js.meth;
getVisibleGridColumns : 'r3. 'r3 Js.js_array Js.t Js.meth;
getVisibleHeaderClosestToIndex : Js.number Js.t -> unit Js.meth;
getWidth : Js.number Js.t Js.meth; getX : Js.number Js.t Js.meth;
getXType : Js.js_string Js.t Js.meth;
getXTypes : Js.js_string Js.t Js.meth;
getXY : Js.number Js.t Js.js_array Js.t Js.meth;
getY : Js.number Js.t Js.meth;
hasCls : Js.js_string Js.t -> bool Js.t Js.meth;
hasListener : Js.js_string Js.t -> bool Js.t Js.meth;
hasListeners : 's3. 's3 Js.t Js.readonly_prop;
hasUICls : Js.js_string Js.t -> unit Js.meth;
hide : 't3 'u3 'v3.
't3 Js.t Js.optdef ->
'u3 Js.callback Js.optdef ->
'v3 Js.t Js.optdef -> 'f Js.t Js.meth;
initComponent : unit Js.meth;
initConfig : 'w3. 'w3 Js.t -> 'f Js.t Js.meth; initEvents : unit Js.meth;
initRenderData : 'x3. 'x3 Js.t Js.meth;
insert : 'y3 'z3.
Js.number Js.t ->
'y3 Js.t -> (#Ext_Component.t as 'z3) Js.t Js.meth;
is : Js.js_string Js.t -> bool Js.t Js.meth;
isAncestor : 'a4. (#Ext_Component.t as 'a4) Js.t -> unit Js.meth;
isComponent : bool Js.t Js.prop;
isDescendantOf : 'b4. 'b4 Js.t -> bool Js.t Js.meth;
isDisabled : bool Js.t Js.meth; isDraggable : bool Js.t Js.meth;
isDroppable : bool Js.t Js.meth; isFloating : bool Js.t Js.meth;
isGroupHeader : bool Js.t Js.prop; isHidden : bool Js.t Js.meth;
isLayoutRoot : unit Js.meth; isLayoutSuspended : bool Js.t Js.meth;
isObservable : bool Js.t Js.prop;
isVisible : bool Js.t Js.optdef -> bool Js.t Js.meth;
isXType : Js.js_string Js.t -> bool Js.t Js.optdef -> bool Js.t Js.meth;
items : 'c4. (#Ext_util_AbstractMixedCollection.t as 'c4) Js.t Js.prop;
maskOnDisable : bool Js.t Js.prop;
mon : 'd4 'e4 'f4 'g4 'h4 'i4.
'd4 Js.t ->
'e4 Js.t ->
'f4 Js.callback Js.optdef ->
'g4 Js.t Js.optdef -> 'h4 Js.t Js.optdef -> 'i4 Js.t Js.meth;
move : 'j4.
Js.js_string Js.t ->
Js.number Js.t -> 'j4 Js.t Js.optdef -> unit Js.meth;
move_container : 'k4 'l4.
'k4 Js.t ->
Js.number Js.t ->
(#Ext_Component.t as 'l4) Js.t Js.meth;
mun : 'm4 'n4 'o4 'p4.
'm4 Js.t ->
'n4 Js.t ->
'o4 Js.callback Js.optdef -> 'p4 Js.t Js.optdef -> unit Js.meth;
nextNode : Js.js_string Js.t Js.optdef -> 'f Js.t Js.meth;
nextSibling : Js.js_string Js.t Js.optdef -> 'f Js.t Js.meth;
on : 'q4 'r4 's4 't4 'u4.
'q4 Js.t ->
'r4 Js.callback Js.optdef ->
's4 Js.t Js.optdef -> 't4 Js.t Js.optdef -> 'u4 Js.t Js.meth;
onAdd : 'v4.
(#Ext_Component.t as 'v4) Js.t -> Js.number Js.t -> unit Js.meth;
onAdded : 'w4. 'w4 Js.t -> Js.number Js.t -> unit Js.meth;
onBeforeAdd : 'x4. (#Ext_Component.t as 'x4) Js.t -> unit Js.meth;
onDestroy : unit Js.meth; onDisable : unit Js.meth;
onEnable : unit Js.meth;
onHide : 'y4 'z4 'a5.
'y4 Js.t Js.optdef ->
'z4 Js.callback Js.optdef -> 'a5 Js.t Js.optdef -> unit Js.meth;
onPosition : Js.number Js.t -> Js.number Js.t -> unit Js.meth;
onRemove : 'b5.
(#Ext_Component.t as 'b5) Js.t -> bool Js.t -> unit Js.meth;
onRemoved : bool Js.t -> unit Js.meth;
onRender : Ext_dom_Element.t Js.t -> Js.number Js.t -> unit Js.meth;
onResize : 'c5 'd5 'e5 'f5.
'c5 Js.t -> 'd5 Js.t -> 'e5 Js.t -> 'f5 Js.t -> unit Js.meth;
onShow : 'g5 'h5 'i5.
'g5 Js.t Js.optdef ->
'h5 Js.callback Js.optdef -> 'i5 Js.t Js.optdef -> unit Js.meth;
onShowComplete : 'j5 'k5.
'j5 Js.callback Js.optdef ->
'k5 Js.t Js.optdef -> unit Js.meth;
ownerCt : 'l5. 'l5 Js.t Js.readonly_prop;
postBlur : Ext_EventObject.t Js.t -> unit Js.meth;
previousNode : Js.js_string Js.t Js.optdef -> 'f Js.t Js.meth;
previousSibling : Js.js_string Js.t Js.optdef -> 'f Js.t Js.meth;
query : Js.js_string Js.t Js.optdef ->
Ext_Component.t Js.js_array Js.t Js.meth;
queryBy : 'm5 'n5.
'm5 Js.callback ->
'n5 Js.t Js.optdef -> Ext_Component.t Js.js_array Js.t Js.meth;
queryById : 'o5.
Js.js_string Js.t -> (#Ext_Component.t as 'o5) Js.t Js.meth;
registerFloatingItem : 'p5. 'p5 Js.t -> unit Js.meth;
relayEvents : 'q5 'r5.
'q5 Js.t ->
Js.js_string Js.t Js.js_array Js.t ->
Js.js_string Js.t Js.optdef -> 'r5 Js.t Js.meth;
remove : 's5 't5.
's5 Js.t ->
bool Js.t Js.optdef -> (#Ext_Component.t as 't5) Js.t Js.meth;
removeAll : bool Js.t Js.optdef ->
Ext_Component.t Js.js_array Js.t Js.meth;
removeAnchor : 'f Js.t Js.meth;
removeChildEls : 'u5. 'u5 Js.callback -> unit Js.meth;
removeCls : 'v5. 'v5 Js.t -> 'f Js.t Js.meth;
removeClsWithUI : 'w5. 'w5 Js.t -> unit Js.meth;
removeListener : 'x5 'y5.
Js.js_string Js.t ->
'x5 Js.callback -> 'y5 Js.t Js.optdef -> unit Js.meth;
removeManagedListener : 'z5 'a6 'b6 'c6.
'z5 Js.t ->
'a6 Js.t ->
'b6 Js.callback Js.optdef ->
'c6 Js.t Js.optdef -> unit Js.meth;
removeUIClsFromElement : Js.js_string Js.t -> unit Js.meth;
render : 'd6 'e6. 'd6 Js.t Js.optdef -> 'e6 Js.t Js.optdef -> unit Js.meth;
rendered : bool Js.t Js.readonly_prop;
resumeEvent : Js.js_string Js.t -> unit Js.meth;
resumeEvents : unit Js.meth;
savePropToState : 'f6.
Js.js_string Js.t ->
'f6 Js.t ->
Js.js_string Js.t Js.optdef -> bool Js.t Js.meth;
savePropsToState : 'g6 'h6 'i6. 'g6 Js.t -> 'h6 Js.t -> 'i6 Js.t Js.meth;
saveState : unit Js.meth;
scrollBy : 'j6 'k6 'l6. 'j6 Js.t -> 'k6 Js.t -> 'l6 Js.t -> unit Js.meth;
scrollFlags : 'm6. 'm6 Js.t Js.readonly_prop;
self : Ext_Class.t Js.t Js.prop; sequenceFx : 'n6. 'n6 Js.t Js.meth;
setActive : 'o6. bool Js.t Js.optdef -> 'o6 Js.t Js.optdef -> unit Js.meth;
setAutoScroll : bool Js.t -> 'f Js.t Js.meth;
setBorder : 'p6. 'p6 Js.t -> unit Js.meth;
setBorderRegion : Js.js_string Js.t -> Js.js_string Js.t Js.meth;
setBox : 'q6 'r6. 'q6 Js.t -> 'r6 Js.t Js.optdef -> 'f Js.t Js.meth;
setDisabled : bool Js.t -> unit Js.meth;
setDocked : 's6. 's6 Js.t -> bool Js.t Js.optdef -> 'f Js.t Js.meth;
setHeight : Js.number Js.t -> 'f Js.t Js.meth;
setLoading : 't6 'u6. 't6 Js.t -> bool Js.t Js.optdef -> 'u6 Js.t Js.meth;
setLocalX : Js.number Js.t -> 'f Js.t Js.meth;
setLocalXY : 'v6. 'v6 Js.t -> Js.number Js.t Js.optdef -> 'f Js.t Js.meth;
setLocalY : Js.number Js.t -> 'f Js.t Js.meth;
setMargin : 'w6. 'w6 Js.t -> unit Js.meth;
setOverflowXY : Js.js_string Js.t -> Js.js_string Js.t -> 'f Js.t Js.meth;
setPagePosition : 'x6 'y6.
'x6 Js.t ->
Js.number Js.t Js.optdef ->
'y6 Js.t Js.optdef -> 'f Js.t Js.meth;
setPosition : 'z6 'a7.
'z6 Js.t ->
Js.number Js.t Js.optdef ->
'a7 Js.t Js.optdef -> 'f Js.t Js.meth;
setRegion : 'b7.
Ext_util_Region.t Js.t ->
'b7 Js.t Js.optdef -> 'f Js.t Js.meth;
setRegionWeight : Js.number Js.t -> Js.number Js.t Js.meth;
setSize : 'c7 'd7. 'c7 Js.t -> 'd7 Js.t -> 'f Js.t Js.meth;
setUI : Js.js_string Js.t -> unit Js.meth;
setVisible : bool Js.t -> 'f Js.t Js.meth;
setWidth : Js.number Js.t -> 'f Js.t Js.meth;
setX : 'e7. Js.number Js.t -> 'e7 Js.t Js.optdef -> 'f Js.t Js.meth;
setXY : 'f7.
Js.number Js.t Js.js_array Js.t ->
'f7 Js.t Js.optdef -> 'f Js.t Js.meth;
setY : 'g7. Js.number Js.t -> 'g7 Js.t Js.optdef -> 'f Js.t Js.meth;
show : 'h7 'i7 'j7.
'h7 Js.t Js.optdef ->
'i7 Js.callback Js.optdef ->
'j7 Js.t Js.optdef -> 'f Js.t Js.meth;
showAt : 'k7 'l7.
'k7 Js.t ->
Js.number Js.t Js.optdef ->
'l7 Js.t Js.optdef -> 'f Js.t Js.meth;
showBy : 'm7.
'm7 Js.t ->
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef -> 'f Js.t Js.meth;
statics : Ext_Class.t Js.t Js.meth;
stopAnimation : Ext_dom_Element.t Js.t Js.meth;
suspendEvent : Js.js_string Js.t -> unit Js.meth;
suspendEvents : bool Js.t -> unit Js.meth; syncFx : 'n7. 'n7 Js.t Js.meth;
toBack : 'o7. 'o7 Js.t Js.meth;
toFront : 'p7. bool Js.t Js.optdef -> 'p7 Js.t Js.meth;
translatePoints : 'q7 'r7.
'q7 Js.t ->
Js.number Js.t Js.optdef -> 'r7 Js.t Js.meth;
un : 's7 't7.
Js.js_string Js.t ->
's7 Js.callback -> 't7 Js.t Js.optdef -> unit Js.meth;
up : 'u7 'v7 'w7.
'u7 Js.t Js.optdef -> 'v7 Js.t Js.optdef -> 'w7 Js.t Js.meth;
update : 'x7 'y7.
'x7 Js.t ->
bool Js.t Js.optdef ->
'y7 Js.callback Js.optdef -> unit Js.meth;
updateBox : 'z7. 'z7 Js.t -> 'f Js.t Js.meth;
updateLayout : 'a8. 'a8 Js.t Js.optdef -> unit Js.meth;
zIndexManager : Ext_ZIndexManager.t Js.t Js.readonly_prop;
zIndexParent : 'b8. 'b8 Js.t Js.readonly_prop; .. >
as 'f)
Js.t -> Js.number Js.t Js.meth as 'e

Returns the index of a leaf level header regardless of what the nesting structure is.

If a group header is passed, the index of the first leaf level header within it is returned.

Parameters:

Returns:


method getMenuItems : 'k3. 'k3 Js.js_array Js.t Js.meth

Returns an array of menu items to be placed into the shared menu across all headers in this header container.

Returns:


method getVisibleGridColumns : 'r3. 'r3 Js.js_array Js.t Js.meth

Returns an array of the visible columns in the grid. This goes down to the lowest column header level, and does not return grouped headers which contain sub headers.


method getVisibleHeaderClosestToIndex : Js.number Js.t -> unit Js.meth

When passed a column index, returns the closet visible column to that. If the column at the passed index is visible, that is returned. If it is hidden, either the next visible, or the previous visible column is returned.

Parameters:


method initComponent : unit Js.meth

The initComponent template method is an important initialization step for a Component. It is intended to be implemented by each subclass of Ext.Component to provide any needed constructor logic. The initComponent method of the class being created is called first, with each initComponent method up the hierarchy to Ext.Component being called thereafter. This makes it easy to implement and, if needed, override the constructor logic of the Component at any step in the hierarchy.

The initComponent method must contain a call to callParent in order to ensure that the parent class' initComponent method is also called.

All config options passed to the constructor are applied to this before initComponent is called, so you can simply access them with this.someOption.

The following example demonstrates using a dynamic string for the text of a button at the time of instantiation of the class.

Ext.define('DynamicButtonText', {
    extend: 'Ext.button.Button',

    initComponent: function() {
        this.text = new Date();
        this.renderTo = Ext.getBody();
        this.callParent();
    }
});

Ext.onReady(function() {
    Ext.create('DynamicButtonText');
});

method isLayoutRoot : unit Js.meth

Determines whether this Component is the root of a layout. This returns true if this component can run its layout without assistance from or impact on its owner. If this component cannot run its layout given these restrictions, false is returned and its owner will be considered as the next candidate for the layout root.

Setting the _isLayoutRoot property to true causes this method to always return true. This may be useful when updating a layout of a Container which shrink wraps content, and you know that it will not change size, and so can safely be the topmost participant in the layout run.


method onAdd : 'v4. (#Ext_Component.t as 'v4) Js.t -> Js.number Js.t -> unit Js.meth

Invalidate column cache on add We cannot refresh the View on every add because this method is called when the HeaderDropZone moves Headers around, that will also refresh the view

This method is invoked after a new Component has been added. It is passed the Component which has been added. This method may be used to update any internal structure which may depend upon the state of the child items.

Parameters:


method onDestroy : unit Js.meth

Allows addition of behavior to the destroy operation. After calling the superclass's onDestroy, the Component will be destroyed.


method onRemove : 'b5. (#Ext_Component.t as 'b5) Js.t -> bool Js.t -> unit Js.meth

Invalidate column cache on remove We cannot refresh the View on every remove because this method is called when the HeaderDropZone moves Headers around, that will also refresh the view

This method is invoked after a new Component has been removed. It is passed the Component which has been removed. This method may be used to update any internal structure which may depend upon the state of the child items.

Parameters:


method onShow : 'g5 'h5 'i5.
'g5 Js.t Js.optdef ->
'h5 Js.callback Js.optdef -> 'i5 Js.t Js.optdef -> unit Js.meth

Allows addition of behavior to the show operation. After calling the superclass's onShow, the Component will be visible.

Override in subclasses where more complex behaviour is needed.

Gets passed the same parameters as show.

Parameters: