yaku2688 2009-09-23 18:23
浏览 509
已采纳

Ext布局中有一属性region是什么意思,对应这什么?

在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中具体在什么地方呢?

  • 写回答

2条回答 默认 最新

  • iteye_20589 2009-09-23 19:43
    关注

    在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]

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?