guiqui / react-timeline-gantt

A react Timeline component with virtual rendering
MIT License
545 stars 132 forks source link

How to use the "mode" setting in config ? #6

Open HachimInno opened 6 years ago

HachimInno commented 6 years ago

Hi, First of all, thank you for the 0.3.9 update 👍 I have several questions : 1- How can I use the mode property in config obj ? 2- Is it still possible to use the dateFormat ? 3- Is it possible to delete a part of the header, like the middle or the bottom part ?

Again thank you so much :)

guiqui commented 6 years ago

Hi, No worries the header needed a good refactoring :); I see what you are asking, right now the mode is pass as an attribute in the timeline, what you want is to be able to pass it in the config obj, with the possibility of defining visibility and dateformat, right?

HachimInno commented 6 years ago

If the mode can be changed in the timeline component, thats fine for me ! What i would like to be able to do is delete (or hide) the bottom part of the header for example so i can keep only years and months

guiqui commented 6 years ago

No yet, I will refactor the code so you can define the header in the config obj.