This topic contains 3 replies, has 2 voices, and was last updated by Avatar Hristofor 1 year, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #100673
    Avatar
    Aks26
    Participant

    Basically, what I want to do is to display the months ‘January, February, March….December’ as ‘Month 1, Month 2, Month 3…Month 12’ and so on. Is there a way to make this happen?

    #100674
    Avatar
    Hristofor
    Participant

    Hi Aks26,

    yes, you can customize the header of the Timeline with any content you wish via the <b>timelineHeaderFormatFunction</b>. Check out this demo on how to use it. You can read more about it in the official API document. Please note that this callback is used to customize both timeline header sections where the third argument in the function indicates whether it is the header details ( top level header segment) or header section that you are currently customizing.

    Best Regards,
    Christopher

    Smart HTML Elements Team
    https://www.htmlelements.com

    #100675
    Avatar
    Aks26
    Participant

    Thanks a lot Chris. I managed to figure it out and it works exactly how I want it to! Just another thing, there is also a row above the months row which displays the year. Is there a way to turn that row off completely?

    #100676
    Avatar
    Hristofor
    Participant

    Hi Aks26,

    Unfortunately it is not posssible to hide the header details section of the Timeline header via the official API of the GanttChart component at this time. The header is designed to have two segments. I can only suggest that you to not set content to that section via the formentioned <b>timelineHeaderFormatFunction</b>.

    Best Regards,
    Christopher

    Smart HTML Elements Team
    https://www.htmlelements.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.