定制 dcodegroup/gantt 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

dcodegroup/gantt

最新稳定版本:v1.0.6

Composer 安装命令:

composer require dcodegroup/gantt

包简介

Gantt Chart

README 文档

README

Gantt chart

composer.json

    "autoload": {
        ...
        "psr-4": {
            ...,
            "DcodeGroup\\": "vendor/dcodegroup/"
        }
    },

instantiate

$groupedCols = \DcodeGroup\Gantt\DatesHelper::ganttColGroups(
    ($_GET['start'] ?? time()),
    ($_GET['end'] ?? null)
);
$gantt = \DcodeGroup\Gantt\Factory::newGantt($groupedCols, $rows, ['isMobile' => $agent->isMobile()]);

Config

# custom bar text
$gantt->barTextFunction = function(\DcodeGroup\Gantt\Bar $bar) {
    return date('j M Y', strtotime($bar->start_date)) . ' - ' . date('j M Y', strtotime($bar->end_date));
};

# disable bar text
$gantt->barTitleAttrs = false;
$gantt->barTextShow = false;

if you disable barTitleAttrs, the bar will have a data-text atrribute instead

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: mit
  • 更新时间: 2018-04-11