Newfeaturesofourclient-sidelibraryv7.0includetheabilitytoassignresourceswithdifferentworkingcalendarstothesametaskusingamergedcalendar,setworkingtimeinminutes,reorderGridcolumnsbydrag-n-drop,customizetheQuickInfopopup,fine-tuneGridcolumnsbymakingtheirwidthflexible,andmanipulatetheContentSecurityPolicy(CSP)compatibilityviatheAPI.Besides,therearechangesinthepackagestructureandthewaylocalizationandextensionsworkinDHTMLXGantt.Divedeeperintothereleasedetailsinourarticle.
Themostgroundbreakingnoveltyofv7.0istheintroductionoftheserver-sideversionofDHTMLXGanttlibrary.NowthereisaNode.jsbuildofDHTMLXGanttintendedforrunningontheserver.
Theresultingworkschedulewillbebasedontheoverlappingworkinghoursofemployeesinvolvedinaproject.Forinstance,ifworkinghoursofoneemployeearefrom8amto4pmwhileanotheremployeeworksfrom11amto7pm,themergedcalendarwillhaveaworkschedulefrom11amto4pm.Thus,whenyouassignseveralemployeestoonetask,thedurationofthistaskwillbecalculatedonthebasisoftheircommonworkingtime.
Mergingdifferentcalendarsintoonecanbedoneautomaticallybysettingthegantt.config.dynamic_resource_calendarsconfigurationoptiontotrue.
Ifyouneedtomergeworkingcalendarsofparticularresourcesonly,youcandoitmanuallywiththehelpofthemergeCalendarsmethod.
Apartfromthisessentialconfigurationupdate,wealsoaddedthegetResourceCalendarmethod,whichreturnsthecalendaroftheassignedresource,andupdatedtheresource_calendarconfig.Besides,fromnowon,Ganttwillrecalculatetheprojectscheduleautomaticallywhenataskcalendarchanges.
V7.0broughtoutnewcustomizationoptionsofDHTMLXGantt.WeexpandedthefunctionalityoftheQuickInfoextensionbyintroducingthegantt.ext.quickInfoconfigurationobjectwitharangeofmethodstomanipulatethelookandfeeloftheQuickInfopopup:
Ifneeded,youcanstylethedraggedcolumnandthemarkerhighlightingwheretoplacethecolumnwiththehelpofCSSclasses.
Bydefault,thisfeatureisdisabledandthusthewidthofcolumnsisfixed.Inordertoenableit,youneedtosetthegrid_elastic_columnconfigtotrue:
Pleasenotethatstartingwithv7.0GanttusestheCSSflexboxlayoutinitslefthandGridcolumns,whatmightaffectthestylingofyourGridinDHTMLXGantt.
ThisconfigurationoptionmakesGanttCSPcompatibleandatthesametimeensurestheimplementationofahigh-performancecodemaintainingahighspeedofthecomponent.
TheCSPupdatecontributestoamoreconvenientworkwithourJSGanttchart,inSalesforceLightninginparticular.