I want to show baseline dynamically, for example if i have 4 baseline in header dropdown, if i toggle first baseline then it should show only one baseline, if i toggle 2nd baseline then it should show second base line in gantt panel. As of know i am able to achieve this functionality using below code
But i have to keep enable baseline feature upfront which shows all baseline upfront which i don't want, i want to show baseline iff if i toggle any baseline item from dropdown. Please refer image for reference.
Screenshot 2021-09-20 at 4.54.05 PM.png (1.97 MiB) Viewed 522 times
Yes Mats, i have gone through the demo. But it shows all baseline on load itself which i don't want. I want when i toggle baseline at that time it should show baseline.
Just disable baseline feature on initial load and enable when you want it. Or use your b-hide-baseline class as added by default for your baselines. It may be configured in template method, as it shown in the example.
Could you please share your code? I am not sure what goes wrong in your solution.
If you used template and set hidden class for all baselines by default, you will be needed to show them manually even after you enabled baselines feature. But in that case you can keep it enabled and show baselines manually on user action (btn click), as you requested.