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
Configs
9Misc
bubbleEventsEvents
callOnFunctionsEvents
clientInstancePlugin
localeClassLocalizable
localizableLocalizable
localizablePropertiesLocalizable
Other
Properties
15
Properties
15Common
disabledInstancePlugin
Class hierarchy
Identifies an object as an instance of ParentArea class, or subclass thereof.
Identifies an object as an instance of ParentArea class, or subclass thereof.
isEventsEvents
isInstancePluginInstancePlugin
isLocalizableLocalizable
Other
Functions
28
Functions
28Configuration
Events
detachListenersBase
Misc
animatePropertyBase
callbackBase
doDisableInstancePlugin
downloadTestCaseBase
resolveCallbackBase
updateLocalizationLocalizable
Other
addListenerEvents
hasListenerEvents
onEvents
relayAllEvents
removeAllListenersEvents
removeListenerEvents
resumeEventsEvents
suspendEventsEvents
triggerEvents
unEvents
Events
5
Events
5Event handlers
5
Event handlers
5Typedefs
1
Typedefs
1BryntumListenerConfigEvents
CSS variables
2
CSS variables
2| Name | Description |
|---|---|
--b-parent-area-border-radius | Parent area border radius |
--b-parent-area-background | Parent area background. A semi-transparent color is recommended |