ivoba/silverstripe-gridfield-html
Composer 安装命令:
composer require ivoba/silverstripe-gridfield-html
包简介
GridField component to add any HTML fragment
README 文档
README
GridField component to add any HTML fragment around the GridField
Stupid simple ...
Install
Via Composer
{
"require": {
"ivoba/silverstripe-gridfield-html": "^1.0"
}
}
Requirements
- SilverStripe 4
Usage
Sometimes you just want to add a Link next to the actions, sometimes some text on top of the grid and sometimes an important image under the grid.
$gridField->getConfig()->addComponent(new GridFieldHtmlComponent([ 'buttons-before-left' => '<a href="/api/model/v1.json" target="_blank" class="font-icon-rocket btn btn-secondary">API</a>', 'before' => '<div class="alert-info">Here comes the grid</div>', 'after' => '<div class="alert-info center"><img src="https://www.seashepherd.org.au/images/news/2016/news-160204-2-3-Clean-Up-Banner-650w-2.jpg"/></div>' ]));
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 123
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-21