Skip to main content

setSkin

Description

Sets the active skin

setSkin: (skin: string) => void

Parameters

  • skin - (required) string - the name of the skin. The allowed values are: "terrace", "dark", "material", "contrast-white", "contrast-black", "meadow", "skyblue", "broadway"

Example

gantt.setSkin("dark");

Details

If the method is called after a gantt is initialized, it will trigger the render method.

If called before initialization, the method will have the same effect as the assignment of the gantt.skin property:

gantt.skin = "dark";

Change log

  • added in v9.0