甘特图 API模板marker_class页面内容marker_class Description 定义分配给 markers 的 CSS 类 marker_class: (marker: any) => void;Parameters marker - (required) object - marker 的配置对象 Examplevar showAdvancedMarkers;gantt.templates.marker_class = function(marker){ if (showAdvancedMarkers) { return "advanced_marker"; } return "hidden";}Related Guides 添加垂直标记 Need help?Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.