class type t =Inheritsobject
..end
method items : 'a. (#Ext_util_AbstractMixedCollection.t as 'a) Js.t Js.prop
The MixedCollection containing all the child items of this container.
method add : 'b 'c. 'b Js.t -> 'c Js.t Js.meth
Adds Component(s) to this Container.
defaults
for details).add
event after the component has been added.If the Container is already rendered when add
is called, it will render the newly added Component into its content area.
If the Container was configured with a size-managing layout manager, the Container will recalculate its internal layout at this time too.
Note that the default layout manager simply renders child Components sequentially into the content area and thereafter performs no sizing.
If adding multiple new child Components, pass them as an array to the add
method,
so that only one layout recalculation is performed.
tb = new Ext.toolbar.Toolbar({
renderTo: document.body
}); // toolbar is rendered
// add multiple items.
// (defaultType for Toolbar is 'button')
tb.add([{text:'Button 1'}, {text:'Button 2'}]);
To inject components between existing ones, use the insert method.
Components directly managed by the BorderLayout layout manager may not be removed or added. See the Notes for BorderLayout for more details.
Parameters:
_ Js.t
Either one or more Components to add or an Array of Components to add.
See items
for additional information.
Returns:
_ Js.t
The Components that were added.
method afterComponentLayout : 'd 'e. Js.number Js.t -> Js.number Js.t -> 'd Js.t -> 'e Js.t -> unit Js.meth
Called by the layout system after the Component has been laid out.
Parameters:
Js.number Js.t
The width that was set
Js.number Js.t
The height that was set
_ Js.t
The old width, or undefined
if this was the initial layout.
_ Js.t
The old height, or undefined
if this was the initial layout.
method afterLayout : 'f. (#Ext_layout_container_Container.t as 'f) Js.t -> unit Js.meth
Invoked after the Container has laid out (and rendered if necessary) its child Components.
Parameters:
#Ext_layout_container_Container.t Js.t
method cascade : 'g 'h 'i.
'g Js.callback ->
'h Js.t Js.optdef ->
'i Js.js_array Js.t Js.optdef ->
(< _isLayoutRoot : bool Js.t Js.prop;
add : 'b 'c. 'b Js.t -> 'c Js.t Js.meth; addChildEls : unit Js.meth;
addCls : 'l. 'l Js.t -> 'k Js.t Js.meth;
addClsWithUI : 'm 'n. 'm Js.t -> 'n Js.t -> unit Js.meth;
addEvents : 'o. 'o Js.t -> unit Js.meth;
addListener : 'p 'q 'r 's 't.
'p Js.t ->
'q Js.callback Js.optdef ->
'r Js.t Js.optdef ->
's Js.t Js.optdef -> 't Js.t Js.meth;
addManagedListener : 'u 'v 'w 'x 'y 'z.
'u Js.t ->
'v Js.t ->
'w Js.callback Js.optdef ->
'x Js.t Js.optdef ->
'y Js.t Js.optdef -> 'z Js.t Js.meth;
addPropertyToState : 'a1.
'a1 Js.t ->
Js.js_string Js.t ->
Js.js_string Js.t Js.optdef -> bool Js.t Js.meth;
addStateEvents : 'b1. 'b1 Js.t -> unit Js.meth;
addUIClsToElement : Js.js_string Js.t -> unit Js.meth;
afterComponentLayout : 'd 'e.
Js.number Js.t ->
Js.number Js.t ->
'd Js.t -> 'e Js.t -> unit Js.meth;
afterHide : 'c1 'd1.
'c1 Js.callback Js.optdef ->
'd1 Js.t Js.optdef -> unit Js.meth;
afterLayout : 'f.
(#Ext_layout_container_Container.t as 'f) 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 -> 'k 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 -> 'k 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 -> 'k 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 : 'g 'h 'i. 'j;
center : 'y1. 'y1 Js.t Js.meth;
child : 'z1 'a2. 'z1 Js.t Js.optdef -> 'a2 Js.t Js.meth;
clearListeners : unit Js.meth; clearManagedListeners : unit Js.meth;
cloneConfig : 'b2. 'b2 Js.t -> 'k Js.t Js.meth;
contains : 'c2.
(#Ext_Component.t as 'c2) 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 -> 'k Js.t Js.meth;
doAutoRender : unit Js.meth; doComponentLayout : 'd2. 'd2 Js.t Js.meth;
doConstrain : 'e2. 'e2 Js.t Js.optdef -> unit Js.meth;
doLayout : 'k Js.t Js.meth;
down : 'f2 'g2. 'f2 Js.t Js.optdef -> 'g2 Js.t Js.meth;
draggable : bool Js.t Js.readonly_prop;
enable : bool Js.t Js.optdef -> unit Js.meth;
enableBubble : 'h2. 'h2 Js.t -> unit Js.meth;
ensureAttachedToBody : bool Js.t Js.optdef -> unit Js.meth;
findParentBy : 'i2 'j2. 'i2 Js.callback -> 'j2 Js.t Js.meth;
findParentByType : 'k2 'l2. 'k2 Js.t -> 'l2 Js.t Js.meth;
findPlugin : Js.js_string Js.t -> Ext_AbstractPlugin.t Js.t Js.meth;
fireEvent : 'm2. Js.js_string Js.t -> 'm2 Js.t -> bool Js.t Js.meth;
fireEventArgs : 'n2.
Js.js_string Js.t ->
'n2 Js.t Js.js_array Js.t -> bool Js.t Js.meth;
floatParent : 'o2. 'o2 Js.t Js.readonly_prop;
focus : 'p2 'q2 'r2.
bool Js.t Js.optdef ->
'p2 Js.t Js.optdef ->
'q2 Js.callback Js.optdef ->
'r2 Js.callback Js.optdef -> 'k Js.t Js.meth;
frameSize : 's2. 's2 Js.t Js.readonly_prop;
getActiveAnimation : 't2. 't2 Js.t Js.meth;
getAlignToXY : 'u2.
'u2 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 : 'v2.
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef ->
'v2 Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.meth;
getBox : 'w2.
bool Js.t Js.optdef ->
bool Js.t Js.optdef -> 'w2 Js.t Js.meth;
getBubbleTarget : 'x2. 'x2 Js.t Js.meth;
getComponent : 'y2 'z2.
'y2 Js.t -> (#Ext_Component.t as 'z2) Js.t Js.meth;
getConstrainVector : 'a3 'b3.
'a3 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 ->
'b3 Js.t Js.meth;
getEl : Ext_dom_Element.t Js.t Js.meth;
getHeight : Js.number Js.t Js.meth; getId : Js.js_string Js.t Js.meth;
getInitialConfig : 'c3. Js.js_string Js.t Js.optdef -> 'c3 Js.t Js.meth;
getInsertPosition : 'd3. 'd3 Js.t -> Dom_html.element Js.t Js.meth;
getItemId : Js.js_string Js.t Js.meth;
getLayout : 'e3. (#Ext_layout_container_Container.t as 'e3) 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;
getOffsetsTo : 'f3. 'f3 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 : 'g3. 'g3 Js.t -> unit Js.meth;
getRegion : Ext_util_Region.t Js.t Js.meth;
getSize : 'h3. 'h3 Js.t Js.meth;
getSizeModel : 'i3 'j3. 'i3 Js.t -> 'j3 Js.t Js.meth;
getState : 'k3. 'k3 Js.t Js.meth;
getViewRegion : Ext_util_Region.t Js.t 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 : 'l3. 'l3 Js.t Js.readonly_prop;
hasUICls : Js.js_string Js.t -> unit Js.meth;
hide : 'm3 'n3 'o3.
'm3 Js.t Js.optdef ->
'n3 Js.callback Js.optdef ->
'o3 Js.t Js.optdef -> 'k Js.t Js.meth;
initComponent : unit Js.meth;
initConfig : 'p3. 'p3 Js.t -> 'k Js.t Js.meth;
initEvents : unit Js.meth; initRenderData : 'q3. 'q3 Js.t Js.meth;
insert : 'r3 's3.
Js.number Js.t ->
'r3 Js.t -> (#Ext_Component.t as 's3) Js.t Js.meth;
is : Js.js_string Js.t -> bool Js.t Js.meth;
isAncestor : 't3. (#Ext_Component.t as 't3) Js.t -> unit Js.meth;
isComponent : bool Js.t Js.prop;
isDescendantOf : 'u3. 'u3 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;
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 : 'a. (#Ext_util_AbstractMixedCollection.t as 'a) Js.t Js.prop;
maskOnDisable : bool Js.t Js.prop;
mon : 'v3 'w3 'x3 'y3 'z3 'a4.
'v3 Js.t ->
'w3 Js.t ->
'x3 Js.callback Js.optdef ->
'y3 Js.t Js.optdef -> 'z3 Js.t Js.optdef -> 'a4 Js.t Js.meth;
move : 'b4.
Js.js_string Js.t ->
Js.number Js.t -> 'b4 Js.t Js.optdef -> unit Js.meth;
move_container : 'c4 'd4.
'c4 Js.t ->
Js.number Js.t ->
(#Ext_Component.t as 'd4) Js.t Js.meth;
mun : 'e4 'f4 'g4 'h4.
'e4 Js.t ->
'f4 Js.t ->
'g4 Js.callback Js.optdef -> 'h4 Js.t Js.optdef -> unit Js.meth;
nextNode : Js.js_string Js.t Js.optdef -> 'k Js.t Js.meth;
nextSibling : Js.js_string Js.t Js.optdef -> 'k Js.t Js.meth;
on : 'i4 'j4 'k4 'l4 'm4.
'i4 Js.t ->
'j4 Js.callback Js.optdef ->
'k4 Js.t Js.optdef -> 'l4 Js.t Js.optdef -> 'm4 Js.t Js.meth;
onAdd : 'n4.
(#Ext_Component.t as 'n4) Js.t ->
Js.number Js.t -> unit Js.meth;
onAdded : 'o4. 'o4 Js.t -> Js.number Js.t -> unit Js.meth;
onBeforeAdd : 'p4. (#Ext_Component.t as 'p4) Js.t -> unit Js.meth;
onDestroy : unit Js.meth; onDisable : unit Js.meth;
onEnable : unit Js.meth;
onHide : 'q4 'r4 's4.
'q4 Js.t Js.optdef ->
'r4 Js.callback Js.optdef ->
's4 Js.t Js.optdef -> unit Js.meth;
onPosition : Js.number Js.t -> Js.number Js.t -> unit Js.meth;
onRemove : 't4.
(#Ext_Component.t as 't4) 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 : 'u4 'v4 'w4 'x4.
'u4 Js.t ->
'v4 Js.t -> 'w4 Js.t -> 'x4 Js.t -> unit Js.meth;
onShow : 'y4 'z4 'a5.
'y4 Js.t Js.optdef ->
'z4 Js.callback Js.optdef ->
'a5 Js.t Js.optdef -> unit Js.meth;
onShowComplete : 'b5 'c5.
'b5 Js.callback Js.optdef ->
'c5 Js.t Js.optdef -> unit Js.meth;
ownerCt : 'd5. 'd5 Js.t Js.readonly_prop;
postBlur : Ext_EventObject.t Js.t -> unit Js.meth;
previousNode : Js.js_string Js.t Js.optdef -> 'k Js.t Js.meth;
previousSibling : Js.js_string Js.t Js.optdef -> 'k Js.t Js.meth;
query : Js.js_string Js.t Js.optdef ->
Ext_Component.t Js.js_array Js.t Js.meth;
queryBy : 'e5 'f5.
'e5 Js.callback ->
'f5 Js.t Js.optdef ->
Ext_Component.t Js.js_array Js.t Js.meth;
queryById : 'g5.
Js.js_string Js.t ->
(#Ext_Component.t as 'g5) Js.t Js.meth;
registerFloatingItem : 'h5. 'h5 Js.t -> unit Js.meth;
relayEvents : 'i5 'j5.
'i5 Js.t ->
Js.js_string Js.t Js.js_array Js.t ->
Js.js_string Js.t Js.optdef -> 'j5 Js.t Js.meth;
remove : 'k5 'l5.
'k5 Js.t ->
bool Js.t Js.optdef -> (#Ext_Component.t as 'l5) Js.t Js.meth;
removeAll : bool Js.t Js.optdef ->
Ext_Component.t Js.js_array Js.t Js.meth;
removeAnchor : 'k Js.t Js.meth;
removeChildEls : 'm5. 'm5 Js.callback -> unit Js.meth;
removeCls : 'n5. 'n5 Js.t -> 'k Js.t Js.meth;
removeClsWithUI : 'o5. 'o5 Js.t -> unit Js.meth;
removeListener : 'p5 'q5.
Js.js_string Js.t ->
'p5 Js.callback -> 'q5 Js.t Js.optdef -> unit Js.meth;
removeManagedListener : 'r5 's5 't5 'u5.
'r5 Js.t ->
's5 Js.t ->
't5 Js.callback Js.optdef ->
'u5 Js.t Js.optdef -> unit Js.meth;
removeUIClsFromElement : Js.js_string Js.t -> unit Js.meth;
render : 'v5 'w5.
'v5 Js.t Js.optdef -> 'w5 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 : 'x5.
Js.js_string Js.t ->
'x5 Js.t ->
Js.js_string Js.t Js.optdef -> bool Js.t Js.meth;
savePropsToState : 'y5 'z5 'a6. 'y5 Js.t -> 'z5 Js.t -> 'a6 Js.t Js.meth;
saveState : unit Js.meth;
scrollBy : 'b6 'c6 'd6. 'b6 Js.t -> 'c6 Js.t -> 'd6 Js.t -> unit Js.meth;
scrollFlags : 'e6. 'e6 Js.t Js.readonly_prop;
self : Ext_Class.t Js.t Js.prop; sequenceFx : 'f6. 'f6 Js.t Js.meth;
setActive : 'g6.
bool Js.t Js.optdef -> 'g6 Js.t Js.optdef -> unit Js.meth;
setAutoScroll : bool Js.t -> 'k Js.t Js.meth;
setBorder : 'h6. 'h6 Js.t -> unit Js.meth;
setBorderRegion : Js.js_string Js.t -> Js.js_string Js.t Js.meth;
setBox : 'i6 'j6. 'i6 Js.t -> 'j6 Js.t Js.optdef -> 'k Js.t Js.meth;
setDisabled : bool Js.t -> unit Js.meth;
setDocked : 'k6. 'k6 Js.t -> bool Js.t Js.optdef -> 'k Js.t Js.meth;
setHeight : Js.number Js.t -> 'k Js.t Js.meth;
setLoading : 'l6 'm6.
'l6 Js.t -> bool Js.t Js.optdef -> 'm6 Js.t Js.meth;
setLocalX : Js.number Js.t -> 'k Js.t Js.meth;
setLocalXY : 'n6.
'n6 Js.t -> Js.number Js.t Js.optdef -> 'k Js.t Js.meth;
setLocalY : Js.number Js.t -> 'k Js.t Js.meth;
setMargin : 'o6. 'o6 Js.t -> unit Js.meth;
setOverflowXY : Js.js_string Js.t ->
Js.js_string Js.t -> 'k Js.t Js.meth;
setPagePosition : 'p6 'q6.
'p6 Js.t ->
Js.number Js.t Js.optdef ->
'q6 Js.t Js.optdef -> 'k Js.t Js.meth;
setPosition : 'r6 's6.
'r6 Js.t ->
Js.number Js.t Js.optdef ->
's6 Js.t Js.optdef -> 'k Js.t Js.meth;
setRegion : 't6.
Ext_util_Region.t Js.t ->
't6 Js.t Js.optdef -> 'k Js.t Js.meth;
setRegionWeight : Js.number Js.t -> Js.number Js.t Js.meth;
setSize : 'u6 'v6. 'u6 Js.t -> 'v6 Js.t -> 'k Js.t Js.meth;
setUI : Js.js_string Js.t -> unit Js.meth;
setVisible : bool Js.t -> 'k Js.t Js.meth;
setWidth : Js.number Js.t -> 'k Js.t Js.meth;
setX : 'w6. Js.number Js.t -> 'w6 Js.t Js.optdef -> 'k Js.t Js.meth;
setXY : 'x6.
Js.number Js.t Js.js_array Js.t ->
'x6 Js.t Js.optdef -> 'k Js.t Js.meth;
setY : 'y6. Js.number Js.t -> 'y6 Js.t Js.optdef -> 'k Js.t Js.meth;
show : 'z6 'a7 'b7.
'z6 Js.t Js.optdef ->
'a7 Js.callback Js.optdef ->
'b7 Js.t Js.optdef -> 'k Js.t Js.meth;
showAt : 'c7 'd7.
'c7 Js.t ->
Js.number Js.t Js.optdef ->
'd7 Js.t Js.optdef -> 'k Js.t Js.meth;
showBy : 'e7.
'e7 Js.t ->
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef -> 'k 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 : 'f7. 'f7 Js.t Js.meth; toBack : 'g7. 'g7 Js.t Js.meth;
toFront : 'h7. bool Js.t Js.optdef -> 'h7 Js.t Js.meth;
translatePoints : 'i7 'j7.
'i7 Js.t ->
Js.number Js.t Js.optdef -> 'j7 Js.t Js.meth;
un : 'k7 'l7.
Js.js_string Js.t ->
'k7 Js.callback -> 'l7 Js.t Js.optdef -> unit Js.meth;
up : 'm7 'n7 'o7.
'm7 Js.t Js.optdef -> 'n7 Js.t Js.optdef -> 'o7 Js.t Js.meth;
update : 'p7 'q7.
'p7 Js.t ->
bool Js.t Js.optdef ->
'q7 Js.callback Js.optdef -> unit Js.meth;
updateBox : 'r7. 'r7 Js.t -> 'k Js.t Js.meth;
updateLayout : 's7. 's7 Js.t Js.optdef -> unit Js.meth;
zIndexManager : Ext_ZIndexManager.t Js.t Js.readonly_prop;
zIndexParent : 't7. 't7 Js.t Js.readonly_prop; .. >
as 'k)
Js.t Js.meth as 'j
Cascades down the component/container heirarchy from this component (passed in the first call), calling the specified function with each component. The scope (this reference) of the function call will be the scope provided or the current component. The arguments to the function will be the args provided or the current component. If the function returns false at any point, the cascade is stopped on that branch.
Parameters:
_ Js.callback
The function to call
_ Js.t
(optional)
The scope of the function (defaults to current component)
_ Js.js_array Js.t
(optional)
The args to call the function with. The current component always passed as the last argument.
Returns:
Ext_container_Container.t Js.t
this
method contains : 'c2.
(#Ext_Component.t as 'c2) Js.t -> bool Js.t Js.optdef -> bool Js.t Js.meth
Determines whether the passed Component is either an immediate child of this Container, or whether it is a descendant.
Parameters:
#Ext_Component.t Js.t
The Component to test.
bool Js.t
(optional)
Pass true
to test for the Component being a descendant at any level.
Returns:
bool Js.t
true
if the passed Component is contained at the specified level.
method disable_chainable : bool Js.t Js.optdef -> 'k Js.t Js.meth
Inherit docs Disable all immediate children that was previously disabled Override disable because onDisable only gets called when rendered
Disable the component.
Parameters:
bool Js.t
(optional)
Passing true
will suppress the disable
event from being fired.
Defaults to: false
Returns:
#Ext_container_AbstractContainer.t Js.t
this
method doLayout : 'k Js.t Js.meth
Manually force this container's layout to be recalculated. The framework uses this internally to refresh layouts form most cases.
Returns:
#Ext_container_Container.t Js.t
this
method getComponent : 'y2 'z2. 'y2 Js.t -> (#Ext_Component.t as 'z2) Js.t Js.meth
Examines this container's items property and gets a direct child component of this container.
Parameters:
_ Js.t
This parameter may be any of the following:
For additional information see Ext.util.MixedCollection.get.
Returns:
#Ext_Component.t Js.t
The component (if found).
method getLayout : 'e3. (#Ext_layout_container_Container.t as 'e3) Js.t Js.meth
Returns the layout instance currently associated with this Container. If a layout has not been instantiated yet, that is done first
Returns:
#Ext_layout_container_Container.t Js.t
The layout
method getRefItems : 'g3. 'g3 Js.t -> unit Js.meth
Used by ComponentQuery, child and down to retrieve all of the items which can potentially be considered a child of this Container.
This may be overriden by Components which have ownership of Components that are not contained in the items collection.
NOTE: IMPORTANT note for maintainers: Items are returned in tree traversal order. Each item is appended to the result array followed by the results of that child's getRefItems call. Floating child items are appended after internal child items.
Parameters:
_ Js.t
method insert : 'r3 's3. Js.number Js.t -> 'r3 Js.t -> (#Ext_Component.t as 's3) Js.t Js.meth
Inserts a Component into this Container at a specified index. Fires the beforeadd event before inserting, then fires the add event after the Component has been inserted.
Parameters:
Js.number Js.t
The index at which the Component will be inserted into the Container's items collection
_ Js.t
The child Component to insert.
Ext uses lazy rendering, and will only render the inserted Component should it become necessary.
A Component config object may be passed in order to avoid the overhead of constructing a real Component object if lazy rendering might mean that the inserted Component will not be rendered immediately. To take advantage of this 'lazy instantiation', set the Ext.Component.xtype config property to the registered type of the Component wanted.
For a list of all available xtypes, see Ext.enums.Widget.
Returns:
#Ext_Component.t Js.t
component The Component (or config object) that was inserted with the Container's default config values applied.
method isAncestor : 't3. (#Ext_Component.t as 't3) Js.t -> unit Js.meth
Determines whether this Container is an ancestor of the passed Component.
This will return true
if the passed Component is anywhere within the subtree
beneath this Container.
Parameters:
#Ext_Component.t Js.t
The Component to test for presence within this Container's subtree.
method move_container : 'c4 'd4. 'c4 Js.t -> Js.number Js.t -> (#Ext_Component.t as 'd4) Js.t Js.meth
Moves a Component within the Container
Parameters:
_ Js.t
The index/component to move.
Js.number Js.t
The new index for the Component.
Returns:
#Ext_Component.t Js.t
component The Component that was moved.
method onAdd : 'n4. (#Ext_Component.t as 'n4) Js.t -> Js.number Js.t -> unit Js.meth
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:
#Ext_Component.t Js.t
Js.number Js.t
method onBeforeAdd : 'p4. (#Ext_Component.t as 'p4) Js.t -> unit Js.meth
This method is invoked before adding a new child Component. It is passed the new Component, and may be used to modify the Component, or prepare the Container in some way. Returning false aborts the add operation.
Parameters:
#Ext_Component.t Js.t
method onPosition : Js.number Js.t -> Js.number Js.t -> unit Js.meth
Called after the component is moved, this method is empty by default but can be implemented by any subclass that needs to perform custom logic after a move occurs.
Parameters:
Js.number Js.t
The new x position.
Js.number Js.t
The new y position.
method onRemove : 't4. (#Ext_Component.t as 't4) Js.t -> bool Js.t -> unit Js.meth
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:
#Ext_Component.t Js.t
bool Js.t
method onResize : 'u4 'v4 'w4 'x4. 'u4 Js.t -> 'v4 Js.t -> 'w4 Js.t -> 'x4 Js.t -> unit Js.meth
Allows addition of behavior to the resize operation.
Called when Ext.resizer.Resizer#drag event is fired.
Parameters:
_ Js.t
_ Js.t
_ Js.t
_ Js.t
method remove : 'k5 'l5.
'k5 Js.t -> bool Js.t Js.optdef -> (#Ext_Component.t as 'l5) Js.t Js.meth
Removes a component from this container. Fires the beforeremove event before removing, then fires the remove event after the component has been removed.
Parameters:
_ Js.t
The component reference or id to remove.
bool Js.t
(optional)
True to automatically invoke the removed Component's Ext.Component.destroy function.
Defaults to the value of this Container's autoDestroy config.
Returns:
#Ext_Component.t Js.t
component The Component that was removed.
method removeAll : bool Js.t Js.optdef -> Ext_Component.t Js.js_array Js.t Js.meth
Removes all components from this container.
Parameters:
bool Js.t
(optional)
True to automatically invoke the removed Component's Ext.Component.destroy function. Defaults to the value of this Container's autoDestroy config.
Returns:
Ext_Component.t Js.js_array Js.t
Array of the removed components