virutmath/table-admin
Composer 安装命令:
composer require virutmath/table-admin
包简介
List record for backend
README 文档
README
- Stand-alone TableAdmin for project
- Using Bootstrap style,
iCheck,select2class - Support pagination for table
Usage
$config = [
'show' => [
'id' => true
],
'formatDate' => 'd/m/Y',
'defaultOptionLabel' => '',
'pageSize' => 30,
'module'=>'',
'idField'=>'id',
];
$categories = [
1=>'Category 1',
2=>'Category 2'
];
$listRecord = [
[
'id'=>1,
'name'=>'Jame Doe',
'category_id'=>1
'active'=>1
],
[
'id'=>2,
'name'=>'Joe Doe',
'category_id'=>2
'active'=>0
]
];
$table = new TableAdmin($listRecord,$config);
$table->column('id','ID record','text');
$table->columnDropdown('category_id','Category',$categories);
$table->column('active','Active','checkbox');
$table->column('id','Edit','edit');
$table->column('id','Delete','delete');
echo $table->render();
统计信息
- 总下载量: 45
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-01