ColumnDuration
Overview
Duration list column adapter. Wraps {@link DurationDisplay}, binding the cell's raw value and forwarding the display options resolved from columnMappings (per field type) and any columnProps override, so a list cell words a duration the way the read view does.
Receives the ObjectsGrid value slot props; only value is consumed for rendering. inheritAttrs is disabled so the remaining cell context props (field, formatted, obj, etc.) are not leaked as DOM attributes onto the DurationDisplay root. DurationDisplay renders a dash for an empty value.
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| value | string|number | undefined | Raw cell value, as a Django duration string or a number of seconds. | |
| format | string | "long" | Unit wording passed to DurationDisplay; "short" abbreviates it for a dense table. | |
| inline | boolean | false | When true, renders inline (no wrapping div). |
Source
client/lib/objects-grid/ColumnDuration.vue