PercentDoneColumn

A column representing the percentDone field of the task.

Percent done column
//<code-header>
fiddle.title = 'Percent done column';
//</code-header>
const gantt = new Gantt({
    appendTo : targetElement,
    height   : 350,

    subGridConfigs : {
        locked : { flex : 1 },
        normal : { collapsed : true }
    },

    project : {
        startDate : new Date(2020, 0, 1),
        events    : [
            { id : 1, name : 'Half done task', startDate : '2020-01-02', endDate : '2020-01-05', percentDone : 50 },
            { id : 2, name : 'Finalized task', startDate : '2020-01-09', endDate : '2020-01-10', percentDone : 100 },
            { id : 3, name : 'Way more work than needed', startDate : '2020-01-09', endDate : '2020-01-10', percentDone : 200 }
        ]
    },

    columns : [
        { type : 'name', flex : 1 },
        { type : 'percentdone', mode : 'circle', flex : 1 }
    ]
});

Styling

Cells in this column get a b-percent-done-cell class added.

If mode is set to circle, the resulting progress circle element in the cell gets a few special CSS classes added:

  • If value equals 0, a b-empty CSS class is added to the circle element.
  • If value equals 100, a b-full CSS class is added to the circle element.
  • If value is > 100, a b-over CSS class is added to the circle element.

Default editor is a NumberField.

Configs

89

Common

autoWidthColumn
fieldColumn
fitModeColumn
flexColumn
largeStepNumberColumn
listenersEvents
maxNumberColumn
maxWidthColumn
minNumberColumn
stepNumberColumn
textColumn
unitNumberColumn
widthColumn

Accessibility

ariaLabelColumn

Export

Integration

vueColumn

Interaction

collapsedColumn
draggableColumn
editorColumn
groupableColumn
hideableColumn
resizableColumn
sealedColumn
sortableColumn

Layout

alignNumberColumn
hiddenColumn
lockedColumn
minWidthColumn
regionColumn

Menu

Merge cells

mergeableColumn

Misc

localeClassLocalizable
localizableLocalizable
tagsColumn
treeColumn

Other

formatNumberColumn
formulaColumn
pinnedColumn
readOnlyColumn

Rendering

cellClsColumn
clsColumn
iconColumn
lowThresholdPercentColumn
modePercentColumn
rendererNumberColumn
showValuePercentColumn
tooltipColumn

Summary

sumColumn
summariesColumn

Properties

161

Common

autoWidthColumn
fieldColumn
fitModeColumn
flexColumn
largeStepNumberColumn
maxNumberColumn
maxWidthColumn
minNumberColumn
stepNumberColumn
textColumn
unitNumberColumn
widthColumn

Class hierarchy

isPercentDoneColumn: Boolean= truereadonly
Identifies an object as an instance of PercentDoneColumn class, or subclass thereof.
isPercentDoneColumn: Boolean= truereadonlystatic
Identifies an object as an instance of PercentDoneColumn class, or subclass thereof.
isColumnColumn
isEventsEvents
isLocalizableLocalizable
isModelModel
isModelLinkModelLink
isModelStmModelStm
isNumberColumnNumberColumn
isPercentColumnPercentColumn
isTreeNodeTreeNode

Accessibility

ariaLabelColumn

Editing

copyOfModel
isValidModel

Export

Fields

allFieldsstaticModel
autoExposeFieldsstaticModel
childrenFieldstaticModel
fieldMapstaticModel
fieldsstaticModel
idFieldstaticModel

Grouping

Identification

keyModel

Integration

vueColumn

Interaction

collapsedColumn
draggableColumn
editorColumn
groupableColumn
hideableColumn
resizableColumn
sealedColumn
sortableColumn

JSON

jsonModel

Layout

alignNumberColumn
hiddenColumn
lockedColumn
minWidthColumn
regionColumn

Lifecycle

configBase

Linked records

hasLinksModelLink
isLinkedModelLink
recordLinksModelLink

Menu

Merge cells

mergeableColumn

Misc

localeHelperLocalizable
localeManagerLocalizable
stmModelStm
tagsColumn
treeColumn

Other

$namestaticModel
defaultsColumn
elementColumn
formatNumberColumn
formulaColumn
gridColumn
pinnedColumn
readOnlyColumn
relationsstaticModel
subGridColumn
typestaticColumn
visibleColumn

Parent & children

allChildrenTreeNode
childLevelTreeNode
firstChildTreeNode
isLeafTreeNode
isLoadedTreeNode
isParentTreeNode
isRootTreeNode
lastChildTreeNode
nextSiblingTreeNode
parentTreeNode
parentIdTreeNode

Rendering

cellClsColumn
clsColumn
iconColumn
lowThresholdPercentColumn
modePercentColumn
rendererNumberColumn
showValuePercentColumn
tooltipColumn

Summary

sumColumn
summariesColumn

Functions

77

Configuration

applyDefaultsstaticBase

Editing

copyModel
getDataModel
removeModel
setModel

Events

Fields

addFieldstaticModel
getModel
processFieldstaticModel
removeFieldstaticModel

Identification

asIdstaticModel

JSON

toJSONModel

Lifecycle

destroystaticBase

Misc

equalsModel
initClassstaticBase
isOfTypeNamestaticBase
linkModelLink
mixinstaticBase
optionalLstaticLocalizable

Other

defaultRendererPercentColumn
hideColumn
LstaticLocalizable
onEvents
relayAllEvents
showColumn
toggleColumn
triggerEvents
unEvents

Parent & children

appendChildTreeNode
bubbleTreeNode
bubbleWhileTreeNode
containsTreeNode
isExpandedTreeNode
removeChildTreeNode
traverseTreeNode

Events

5

Event handlers

5

Typedefs

2

CSS variables

16

Inherited