在Ext的布局中,有一属性region,如下代码:
var border = new Ext.Panel({
title: 'Border Layout',
layout:'border',
items: [{
title: 'South Panel',
region: 'south', height: 100,
minSize: 75,
maxSize: 250,
margins: '0 5 5 5'
},{
title: 'West Panel',
region:'west',
margins: '5 0 0 5',
cmargins: '5 5 0 5',
width: 200,
minSize: 100,
maxSize: 300
}]
});
region是什么意思啊?其值是固定的几个吗?
在API中具体在什么地方呢?
在API:Ext.layout.BorderLayout.Region的Public Methods里
[code="java"]Class Ext.layout.BorderLayout.Region
Package: Ext.layout
Defined In: BorderLayout.js
Class: BorderLayout.Region
Subclasses: BorderLayout.SplitRegion
Extends: Object [/code]
[quote]BorderLayout.Region( Layout layout, Object config, String position )
Create a new Region.
Parameters:
layout : Layout
Any valid Ext layout class
config : Object
The configuration options
position : String
The region position. Valid values are: [color=red]north, south, east, west and center[/color]. Every BorderLayout must have a center region for the primary content -- all other regions are optional.[/quote]
意思就是,一张麻将台,东南西北中,胡了。