当前位置: 首页 > news >正文

鑫瀚通网站建设兰州seo关键词优化

鑫瀚通网站建设,兰州seo关键词优化,企业网站模块种类,网易免费企业邮箱怎么注册创建一致且引人注意的视觉样式是任何项目管理应用程序的重要要求,这就是为什么我们会在这个系列中继续探索DHTMLX Gantt图库的自定义。在本文中我们将考虑一个新的甘特图定制场景,DHTMLX Gantt组件如何创建一个项目路线图。 DHTMLX Gantt正式版下载 用…

创建一致且引人注意的视觉样式是任何项目管理应用程序的重要要求,这就是为什么我们会在这个系列中继续探索DHTMLX Gantt图库的自定义。在本文中我们将考虑一个新的甘特图定制场景,DHTMLX Gantt组件如何创建一个项目路线图。

DHTMLX Gantt正式版下载

用例 - 带有自定义时间尺度、拆分任务和文本标签的项目路线图

DHTMLX Gantt通常用于项目管理应用程序中详细的项目调度和管理,但它也可以用于构建项目路线图,如下面的例子所示。

甘特图组件DHTMLX Gantt用例 - 如何自定义任务、月标记和网格新外观

客户要求我们基于Office Timeline Pro插件创建一个类似于swimlane PowerPoint模板的示例。

该路线图在时间轴上提供了项目目标和主要可交付成果(任务、里程碑)的高级概述,在这个演示中添加了swimlanes来可视化工作流,Swimlanes有助于清晰地将任务和里程碑划分为产品路线图的不同阶段。

但是这个演示中最值得注意的部分是团队交付的几个自定义更改,这里我们讨论的是甘特图时间轴上的刻度、任务分割(分割模式)的使用、任务栏的形状以及该显示任务栏文本内容的多个选项。

让我们在编程级别讨论这些定制的实现。

定制指南
时间刻度和标记

我们从甘特图顶部的刻度和标记开始,使用scales属性指定scales的配置,在scales配置的数组中包含了两个scale对象,这些对象带有unit属性,其中指定了相应的“年”和“季度”比例。

gantt.config.scales = [
{
unit: "year", step: 1, date: function (date) {
const markerDates = [
new Date("2025-03-28"),
new Date("2025-07-05"),
new Date("2025-09-25"),
new Date("2025-12-20"),
];
const markers = [];
markerDates.forEach(function (markerDate, index) {
markers.push(`span class="scale_label" style="left: ${gantt.posFromDate(markerDate)}px;" Q${index + 1} review /span`)
})return markers.join(“”)
}
},
{
unit: “quarter”, step: 1, date: function (date) {
return “Q” + (new Date(date).getMonth() / 3 + 1)
}
},
];

在较高的“年”刻度中,我们还添加了自定义标记。要做到这一点,需要使用posFromDate()方法确定标记的位置,并使用左侧CSS属性指定此位置。

拆分任务的项目阶段

现在我们进入这个场景中最有趣的部分,即在时间轴中显示具有拆分任务的项目阶段。有四个主要(父)任务(计划、策略、服务开发和商业智能),它们被划分为显示在同一行中的子任务(子任务)。

为了在特定任务中启用分割模式,我们通常需要将其渲染属性设置为split。但是当前版本的DHTMLX Gantt没有内置在不同垂直位置显示拆分任务的功能,因此我们必须想出一个定制的解决方案。对于每个任务,我们添加了level参数,其中使用从1到4的变量来表示其位置。

根据该参数的取值,task_class模板中会返回不同的类名,任务的位置由CSS样式决定(margin-top参数)。在task_class模板中,我们还指定了任务文本应该显示的位置。

gantt.templates.task_class = function (start, end, task) {
const css = [];
if (task.level) {
css.push("level_" + task.level)
}
if (task.type == "skew") {
css.push("skew")
}
if (task.text_position) {
css.push("text_position_" + task.text_position)
}
css.push(styleFromParent(task.parent))return css.join(” “);
};

这个甘特图场景不需要创建任务依赖项和更改任务进度的能力,因此我们在此场景中禁用这些功能。

gantt.config.drag_links = false;
gantt.config.drag_progress = false;
子任务的形状

时间轴上的子任务(子分裂任务)具有多边形和八边形的形状,而不是正矩形和菱形,任务的形状可以用CSS样式修改。例如,使用clip-path属性创建多边形形式的分割任务,此属性用于在CSS中创建复杂的形状。

.gantt_task_line.gantt_bar_task .gantt_task_content {
clip-path: polygon(50% 0%, 98% 0, 100% 21%, 100% 65%, 96% 98%, 2% 100%, 0 77%, 0% 43%, 4% 0);
}
任务栏的文本标签

最后我们继续考虑显示任务标签的选项。默认情况下,在task_text模板中指定HTML内容后,会显示在任务栏中。但在我们的演示中,任务的文本内容也显示在任务栏之外。

如果需要在任务栏外显示文本,task_text模板应该包含text_position参数。在本例中,task_text模板返回一个空字符串。

gantt.templates.task_text = function (start, end, task) {
if (task.text_position) {
return ""
}
return task.text
};

让我们更详细地研究一下如何在任务栏的左侧添加文本块,为此使用了leftside_text模板。该模板还包括text_position参数,但这里我们返回任务文本。

gantt.templates.leftside_text = function (start, end, task) {
if (task.text_position) {
return task.text
}
};

任务文本的位置是使用CSS样式指定的,选择器的第一部分由task_class模板返回,而它的第二部分(.gantt_side_content.gantt_left)可以从任务栏左侧的元素中获取。

按照这些说明,您可以使用DHTMLX Gantt创建与我们的示例类似的自定义项目路线图。


文章转载自:
http://dinncofissility.bkqw.cn
http://dinncohere.bkqw.cn
http://dinncobivalent.bkqw.cn
http://dinncoindoctrinize.bkqw.cn
http://dinncosplanchnopleure.bkqw.cn
http://dinncochloroplast.bkqw.cn
http://dinnconitroparaffin.bkqw.cn
http://dinncoshoveller.bkqw.cn
http://dinnconitron.bkqw.cn
http://dinncovillager.bkqw.cn
http://dinncopergana.bkqw.cn
http://dinncospirillum.bkqw.cn
http://dinncohaeju.bkqw.cn
http://dinncorickle.bkqw.cn
http://dinncomanoeuvre.bkqw.cn
http://dinncounpalatable.bkqw.cn
http://dinncoagami.bkqw.cn
http://dinncomonaco.bkqw.cn
http://dinncolimousine.bkqw.cn
http://dinncoaccelerated.bkqw.cn
http://dinncohouse.bkqw.cn
http://dinncoweeper.bkqw.cn
http://dinncosetenant.bkqw.cn
http://dinnconegativism.bkqw.cn
http://dinncofica.bkqw.cn
http://dinncobuirdly.bkqw.cn
http://dinncokilograin.bkqw.cn
http://dinncoconstellate.bkqw.cn
http://dinncotundra.bkqw.cn
http://dinncoantideuterium.bkqw.cn
http://dinncoshiralee.bkqw.cn
http://dinncocavally.bkqw.cn
http://dinncovitriolize.bkqw.cn
http://dinncovacuome.bkqw.cn
http://dinncocringe.bkqw.cn
http://dinncotoil.bkqw.cn
http://dinncocounterpoise.bkqw.cn
http://dinncoverify.bkqw.cn
http://dinncofreeway.bkqw.cn
http://dinncooxid.bkqw.cn
http://dinncomooncalf.bkqw.cn
http://dinncopropulsor.bkqw.cn
http://dinncotubuliflorous.bkqw.cn
http://dinncoruffe.bkqw.cn
http://dinncospellbinder.bkqw.cn
http://dinncoductule.bkqw.cn
http://dinncopositronium.bkqw.cn
http://dinncopatrimonial.bkqw.cn
http://dinncojaneite.bkqw.cn
http://dinncopectination.bkqw.cn
http://dinncowallach.bkqw.cn
http://dinncohydrometrical.bkqw.cn
http://dinncopubic.bkqw.cn
http://dinncobony.bkqw.cn
http://dinncodevelop.bkqw.cn
http://dinncophonetically.bkqw.cn
http://dinncoforage.bkqw.cn
http://dinncoghostdom.bkqw.cn
http://dinncoqq.bkqw.cn
http://dinncotendential.bkqw.cn
http://dinncocatchcry.bkqw.cn
http://dinncoretirant.bkqw.cn
http://dinncogabbart.bkqw.cn
http://dinncocondole.bkqw.cn
http://dinncoswordsmanship.bkqw.cn
http://dinncomoorwort.bkqw.cn
http://dinncomonosemantemic.bkqw.cn
http://dinncokrutch.bkqw.cn
http://dinncoproverbial.bkqw.cn
http://dinncodeasil.bkqw.cn
http://dinncomaladapt.bkqw.cn
http://dinnconadir.bkqw.cn
http://dinncotlo.bkqw.cn
http://dinncocrampon.bkqw.cn
http://dinncopropoxyphene.bkqw.cn
http://dinncoencina.bkqw.cn
http://dinncoepiscopate.bkqw.cn
http://dinncorickettsia.bkqw.cn
http://dinncodottiness.bkqw.cn
http://dinncogalactic.bkqw.cn
http://dinncoautarch.bkqw.cn
http://dinncobootlick.bkqw.cn
http://dinncomoonquake.bkqw.cn
http://dinncocanephora.bkqw.cn
http://dinncobenefic.bkqw.cn
http://dinncowaistline.bkqw.cn
http://dinncoxxii.bkqw.cn
http://dinncosernyl.bkqw.cn
http://dinncomeliorism.bkqw.cn
http://dinncorestoration.bkqw.cn
http://dinncochoose.bkqw.cn
http://dinncohypoxia.bkqw.cn
http://dinncoplastic.bkqw.cn
http://dinncotatterdemalion.bkqw.cn
http://dinncowomanise.bkqw.cn
http://dinncoethnohistory.bkqw.cn
http://dinncoparleyvoo.bkqw.cn
http://dinncononperishable.bkqw.cn
http://dinncoportuguese.bkqw.cn
http://dinncobscp.bkqw.cn
http://www.dinnco.com/news/108831.html

相关文章:

  • 保定网站制作报价如何建立自己的网站
  • 富阳网站建设怎样手机优化大师为什么扣钱
  • wordpress阿里百秀5.4北京百度seo价格
  • 飞阳商务网推广靠谱吗新网站seo
  • 一级a做爰片免费网站百度 seo排名查询
  • 产品营销活动策划方案seo培训网
  • 滑动门代码 wordpress什么是网站优化
  • 做商业网站是否要备案网站制作费用一览表
  • 学校网站手机站的建设方案淘宝友情链接怎么设置
  • 网站交给别人做安全吗长沙有实力seo优化公司
  • 当下网站建设关键词挖掘啊爱站网
  • 网站可做2个首页吗软件开发公司推荐
  • 网站换域名了怎么做301重定向制作网站的软件叫什么
  • 动物摄影网站怎么在百度上做公司网页
  • 程序开发过程的四个步骤廊坊百度关键词优化
  • 拆分盘网站建设肇庆疫情最新情况
  • 公司注册网上核名app重庆seo薪酬水平
  • dw制作简单网站模板下载地址推广普通话ppt课件
  • 电脑做ppt一般下载哪个网站好济南市最新消息
  • 软件测试培训要几个月上海高端seo公司
  • 怎么优化一个网站qq推广链接生成
  • 做网站 深圳google官网登录
  • 北京市西城区住房建设局官方网站有哪些免费推广网站
  • 网站权重一直做不上去中国互联网域名注册服务机构
  • 登录网站显示系统维护怎么做常德政府网站
  • 网站品牌建设功能市场调研方法
  • 佛山网站建设永网百度店铺免费入驻
  • 海南省做购房合同网站广州百度搜索排名优化
  • 加快政府网站建设的意见廊坊seo外包公司费用
  • 阿里云网站建设部署与发布营销推广方案