Skip to content

网格表单面板 formGridPanel ​

用于在页面内按网格排列字段,并在简洁模式和完整模式之间切换。字段的 width 控制网格中的宽度,默认一项占一半。

php
formGridPanel
(
    set::title('编辑任务'),
    set::items(array(
        'name' => array('label' => '任务名称', 'width' => 'full'),
        'begin' => array('label' => '开始日期', 'control' => 'date'),
        'end' => array('label' => '截止日期', 'control' => 'date')
    ))
);

默认配置 ​

属性默认值
layout'grid'
class'panel-form page-form'
size空字符串
container、modeSwitcher、customBtn、stickyActionstrue
foldableItemsnull
formID'$AUTO',内部表单 ID 取 form-模块-方法

其他面板属性、字段设置和配置示例见 formPanel 和 表单指南。