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
- duration - Event duration field
- DurationField - Duration editor widget
- NumberColumn - Base number column
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
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
trueto 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
falseto use raw valueHas a corresponding runtime decimalPrecision property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of DurationColumn class, or subclass thereof.
-
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 field config.
-
Set to
trueto display duration in short form (5d, 2mo)Has a corresponding abbreviatedUnit config.
-
Precision of displayed duration, defaults to use durationDisplayPrecision. Specify an integer value to override that setting, or
falseto use raw valueHas a corresponding decimalPrecision config.
-
Identifies an object as an instance of DurationColumn class, or subclass thereof.