Skip to main content

changeLightboxType

Description

Repaints the lighbox for the task according to its type

changeLightboxType: (type: string) => void

Parameters

  • type - (required) string - the task type

Example

gantt.changeLightboxType(gantt.config.types.project);

Details

The method repaints the lightbox and if possible saves all the input. For rebuilding the structure, the method uses the configuration for the specified type.

If the type of the lightbox is the same as the type in the parameter, the method does not repaint the lightbox.