v7.3.0

DurationColumn

A column showing the task duration. Please note, this column is preconfigured and expects its field to be of the Duration type.

The default editor is a DurationField. It parses time units, so you can enter "4d" indicating 4 days duration, or "4h" indicating 4 hours, etc. The numeric magnitude can be either an integer or a float value. Both "," and "." are valid decimal separators. For example, you can enter "4.5d" indicating 4.5 days duration, or "4,5h" indicating 4.5 hours.

See also

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • field : String'fullDuration'

    The name of the data model field to read a cells value from.

    Setting duration as the field value for the duration column is not allowed since the field needs both a duration magnitude and unit, as supplied by for example the fullDuration field. Additionally, a custom implemented field for the duration column should return a duration object to work correctly.

    Has a corresponding runtime field property.

  • Set to true to display duration in short form (5d, 2mo)

    Has a corresponding runtime abbreviatedUnit property.

  • Precision of displayed duration, defaults to use durationDisplayPrecision. Specify an integer value to override that setting, or false to use raw value

    Has a corresponding runtime decimalPrecision property.

Properties

Properties are getters/setters or publicly accessible variables on this class
type: duration

Source path

Scheduler/column/DurationColumn.js

Contents