ivoba/silverstripe-gridfield-html 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Total Downloads

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>'
          ]));

See here: https://docs.silverstripe.org/en/4/developer_guides/forms/field_types/gridfield/#flexible-area-assignment-through-fragments

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 123
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固