Premium support for our pure JavaScript UI components


Post by shashank.yadav »

Hi Team,

We want to disable few of the items from the chart. Need your assistance here, please.

  1. Disable or restrict user to right click on chart header. As we don't want show below highlighted dialog.

    rightClickOnChartHearder.png
    rightClickOnChartHearder.png (49.36 KiB) Viewed 95 times
  2. Disable or restrict user to double click on dependencies arrow of chart. As we don't want show below highlighted dialog.

    doubleClickOnDependeciesArrow.png
    doubleClickOnDependeciesArrow.png (50.93 KiB) Viewed 95 times
  3. Disable or restrict user to double click on Name-text of chart. As we don't want to allow user to edit Name.

    doubleClickOnNameChart.png
    doubleClickOnNameChart.png (41.19 KiB) Viewed 95 times

Thanks,
Shashank Yadav
Hatch Digital


Post by ghulam.ghous »

Hi Shashank Yadav,

1: This is timeAxisHeaderMenu https://bryntum.com/products/gantt/docs/api/Scheduler/feature/TimeAxisHeaderMenu. This is enabled by default, you can disable it by setting the feature name to false in feature config:

features:{
	timeAxisHeaderMenu: false;
     }

2: This is a dependencyEdit feature https://bryntum.com/products/gantt/docs/api/SchedulerPro/feature/DependencyEdit which is disabled by default. So probably you have set it to true in your features config. You can remove that config and it will be disabled.

features:{
	dependencyEdit: false;
     }

3: If I am right, you have used labels features there. You can disable the editing of a label by setting the editor to null:

    
features : { labels : { before : { editor : null }, } }

Please don't forget to change corrosponding changes in the markup file.

Hope it helps!
Regards,
Ghous


Post by shashank.yadav »

Thanks Ghous, Last two points solution worked. But first point is not working.

features : {
        timeAxisHeaderMenu: false,
        }

Is there anything we are missing here?

Thanks,
Shashank Yadav
Hatch Digital


Post by tasnim »

Hi,

Have you added timeAxisHeaderMenuFeature in the HTML markup?

<bryntum-gantt
	#gantt
	[timeAxisHeaderMenuFeature] = "ganttConfig.features.timeAxisHeaderMenu"
</bryntum-gantt>

Post by shashank.yadav »

Ahh, I remember Ghous also mentioned that, and still I forgot to put it down.
Thanks Tasim & Ghous. Yes it worked.

Regards,
Shashank Yadav
Hatch Digital


Post Reply