ParentArea

Highlights the area encapsulating all child tasks of a parent task in a semi-transparent layer. You can style these layer elements using the b-parent-area CSS class.

Parent area
//<code-header>
fiddle.title = 'Parent area';
//</code-header>
const gantt = new Gantt({
    appendTo   : targetElement,
    autoHeight : true,
    forceFit   : true,

    project : {
        tasks : [
            {
                id       : 1,
                name     : 'Write docs',
                expanded : true,
                children : [
                    {
                        id        : 2,
                        name      : 'Proof-read docs',
                        startDate : '2022-06-02',
                        endDate   : '2022-06-05'
                    },
                    {
                        id        : 3,
                        name      : 'Release docs',
                        startDate : '2022-06-05',
                        endDate   : '2022-06-10'
                    }
                ]
            },

            {
                id       : 4,
                name     : 'Discuss with client',
                expanded : true,
                children : [
                    {
                        id        : 5,
                        name      : 'C-level discussion',
                        startDate : '2022-06-10',
                        endDate   : '2022-06-15'
                    },
                    {
                        id        : 6,
                        name      : 'UX team issues',
                        startDate : '2022-06-15',
                        duration  : 0
                    }
                ]
            }
        ],

        dependencies : [
            { from : 2, to : 3 },
            { from : 3, to : 4 },
            { from : 5, to : 6 }
        ]
    },

    columns : [
        { type : 'name', width : 250 }
    ],

    features : {
        projectLines : false,
        parentArea   : true
    }
});

This feature is disabled by default. For info on enabling it, see GridFeatures.

const gantt = new Gantt({
    features : {
        parentArea : true
    }
});

Configs

9

Common

disabledInstancePlugin
listenersEvents

Misc

clientInstancePlugin
localeClassLocalizable
localizableLocalizable

Other

Properties

15

Common

disabledInstancePlugin

Class hierarchy

isParentArea: Boolean= truereadonly
Identifies an object as an instance of ParentArea class, or subclass thereof.
isParentArea: Boolean= truereadonlystatic
Identifies an object as an instance of ParentArea class, or subclass thereof.
isEventsEvents
isInstancePluginInstancePlugin
isLocalizableLocalizable

Lifecycle

configBase

Misc

clientInstancePlugin
localeHelperLocalizable
localeManagerLocalizable

Other

Functions

28

Configuration

applyDefaultsstaticBase

Events

Lifecycle

destroystaticBase

Misc

doDisableInstancePlugin
initClassstaticBase
isOfTypeNamestaticBase
mixinstaticBase
optionalLstaticLocalizable

Other

LstaticLocalizable
onEvents
relayAllEvents
triggerEvents
unEvents

Events

5
catchAllEvents
destroyEvents
disableInstancePlugin
enableInstancePlugin

Event handlers

5
onDestroyEvents
onDisableInstancePlugin
onEnableInstancePlugin

Typedefs

1

CSS variables

2
NameDescription
--b-parent-area-border-radiusParent area border radius
--b-parent-area-backgroundParent area background. A semi-transparent color is recommended