types

stores the names of lightbox's structures (used for different types of tasks)

object types;

Available only in PRO Edition

Example

var type1 = gantt.config.types.task;


Default value:

types : {'task':'task','project':'project','milestone':'milestone'}

Related samples

Details

This functionality is available in the PRO edition only.

The 'types' object consists of "type programmatic name": "type identifier" pairs.

  • The type programmatic name doesn't affect anything. The only purpose of it is to make the work with types more readable.
  • The type identifier is stored in the database. It must be unique within the types' object. If required, the type identifier can be changed to any desirable value:
    {"task":0,"project":1,"milestone":2}


The default declaration of the 'types' object:

types: {
    'task':'task',            // a lightbox for reqular tasks
    'project':'project',      // a lightbox for project tasks
    'milestone':'milestone'   // a lightbox for milestones
}
See also
  • Articles
  • Back to top