gantt-chart - 如何根据 AnyGantt 中的自定义字段调整里程碑标记类型?
问题描述
如何根据 AnyGantt 中的自定义字段调整里程碑标记类型?
我尝试使用它(其中 subType 是字段名称),但它呈现一个星形。
timeline.milestones().markerType(
function() {
var customfieldSubType = this.getData('subType');
if (customfieldSubType == "Strategy") {
return "diamond";
} else {
return "circle";
}
}
);
解决方案
推荐阅读
- rust - 如何使用对 FnOnce 闭包的引用?
- mysql - CRUD notes - 为笔记离线创建 ID
- java - 如何让 Discord Bot 等待特定用户使用 JDA 发送消息?
- java - 从另一个类访问正在运行的应用程序类
- c# - 正则表达式匹配基本路径
- mysql - MySQL - 用第 2 行的第 2 列减去第 1 行的第 1 列
- excel - 无法将剪贴板中的数据范围粘贴到其他工作簿的选定单元格
- jupyter-notebook - 在 Daru 中,如何在单个 Cell 中显示多个 DataFrame?
- google-dl-platform - 可以启动在不同实例类型上创建的磁盘映像吗?
- django - 在小部件级别检查错误和其他值 - 可能使用自定义表单字段