bi.border

上下的高度固定/左右的宽度固定,中间的高度/宽度自适应

BI.createWidget({
    type: 'bi.border',
    element: "#wrapper",
    items: {
        north: {
            el: {type: "bi.label"},
            height: 30,
            top: 20,
            left: 20,
            right: 20
        },
        south: {
            el: {type: "bi.label"},
            height: 50,
            bottom: 20,
            left: 20,
            right: 20
        },
        west: {
            el: {type: "bi.label"},
            width: 200,
            left: 20
        },
        east: {
            el: {type: "bi.label"},
            width: 300,
            right: 20
        },
        center: {el: {type: "bi.label"}}
    }
});

API

基础属性
参数 说明 类型 可选值 默认值
items 子控件对象 object north,east,west,south,center [ ]

results matching ""

    No results matching ""