跳到主要内容

setSkin

Description

设置活动皮肤

setSkin: (skin: string) => void

Parameters

  • skin - (required) string - 皮肤的名称。可用的值有: "terrace", "dark", "material", "contrast-white", "contrast-black", "meadow", "skyblue", "broadway"

Example

gantt.setSkin("dark");

Details

如果该方法在 gantt 初始化后被调用,它将触发 render 方法。

如果在初始化之前调用,该方法将具有与对 gantt.skin 属性赋值相同的效果:

gantt.skin = "dark";

Change log

  • 已在 v9.0 中新增
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.