Clear Up
SharpKit Reference

BorderConfig Class

Namespace: Ext.layout.container

Constructors

Name Description
BorderConfig(Object[])

Fields

Name Description
padding Sets the padding to be applied to all child items managed by this layout. This property can be specified as a string containing space-separated, numeric padding values. The order of the sides associated with each value matches the way CSS processes padding values:
  • If there is only one value, it applies to all sides.
  • If there are two values, the top and bottom borders are set to the first value and the right and left are set to the second.
  • If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third.
  • If there are four values, they apply to the top, right, bottom, and left, respectively.
  • regionWeights The default weights to assign to regions in the border layout. These values are used when a region does not contain a weight property. This object must have properties for all regions ("north", "south", "east" and "west"). IMPORTANT: Since this is an object, changing its properties will impact ALL instances of Border layout. If this is not desired, provide a replacement object as a config option instead:
    layout: {
               type: 'border',
               regionWeights: {
               west: 20,
               north: 10,
               south: -10,
               east: -20
               }
               }
                
    The region with the highest weight is assigned space from the border before other regions. Regions of equal weight are assigned space based on their position in the owner's items list (first come, first served).
    split This configuration option is to be applied to the child items managed by this layout. Each region with split:true will get a Splitter that allows for manual resizing of the container. Except for the center region.
    splitterResize This configuration option is to be applied to the child items managed by this layout and is used in conjunction with split. By default, when specifying split, the region can be dragged to be resized. Set this option to false to show the split bar but prevent resizing. Defaults to: true
    © Copyright 2005-2011 SharpKit. All rights reserved.