'一:Table Edit的配置',
'description' => '对于数据的编辑,需要做的事情',
'content' => [
['配置项','详细说明'],
['函数DEMO:','
[
\'label\'=>\'Ebay Site\',
\'name\'=>\'ebaystore\',
\'display\'=>[
\'type\' => \'inputString\',
],
\'require\' => 1,
],
'
],
['label','显示的label'],
['name','数据库中的字段名称'],
['display','显示的方式,有下面几种方式:
[
\'type\' => \' 类型 \' ,
\'data\' => \' 数据\',
]
type的值有:
1.inputString 字符串的input
2.inputDate 时间格式的input
3.inputEmail email格式的input
4.inputPassword 密码格式的input
5.select 下拉条格式的select
data 只有在select的情况下有效
里面存放的数组。用于生成select。
'],
['require',''],
],
];
echo \fec\helpers\CDoc::tableformat($array);
?>