Class type Ext_container_DockingContainer.configs


class type configs = object .. end
Inherits
method defaultDockWeights : 'a. 'a Js.t Js.prop

This object holds the default weights applied to dockedItems that have no weight. These start with a weight of 1, to allow negative weights to insert before top items and are odd numbers so that even weights can be used to get between different dock orders.

To make default docking order match border layout, do this:

 Ext.panel.AbstractPanel.prototype.defaultDockWeights = { top: 1, bottom: 3, left: 5, right: 7 };

Changing these defaults as above or individually on this object will effect all Panels. To change the defaults on a single panel, you should replace the entire object:

 initComponent: function () {
     // NOTE: Don't change members of defaultDockWeights since the object is shared.
     this.defaultDockWeights = { top: 1, bottom: 3, left: 5, right: 7 };

     this.callParent();
 }

To change only one of the default values, you do this:

 initComponent: function () {
     // NOTE: Don't change members of defaultDockWeights since the object is shared.
     this.defaultDockWeights = Ext.applyIf({ top: 10 }, this.defaultDockWeights);

     this.callParent();
 }

Defaults to: {top: {render: 1, visual: 1}, left: {render: 3, visual: 5}, right: {render: 5, visual: 7}, bottom: {render: 7, visual: 3}}

method onDockedAdd : 'b.
((< defaultDockWeights : 'a. 'a Js.t Js.prop; onDockedAdd : 'b. 'c;
onDockedRemove : 'e.
('d Js.t, (#Ext_Component.t as 'e) Js.t -> unit)
Js.meth_callback Js.writeonly_prop;
.. >
as 'd)
Js.t, (#Ext_Component.t as 'b) Js.t -> unit)
Js.meth_callback Js.writeonly_prop as 'c
See method t.onDockedAdd
method onDockedRemove : 'e.
('d Js.t, (#Ext_Component.t as 'e) Js.t -> unit) Js.meth_callback
Js.writeonly_prop
See method t.onDockedRemove