Page 1 of 1

creationTooltip API

Posted: Thu Jun 30, 2022 5:34 am
by yingtao

You can customize the HTML content? How do you customize the HTML?


Re: creationTooltip API

Posted: Thu Jun 30, 2022 7:04 am
by tasnim

Could you please explain what you're exactly looking for?


Re: creationTooltip API

Posted: Thu Jun 30, 2022 10:22 am
by Animal

I think you need this config of the Gantt taskDragCreate feature: https://www.bryntum.com/docs/gantt/api/Scheduler/feature/EventResize#config-tooltipTemplate.

The documentation is wrong for the Gantt taskDragCreate feature right now and does not show this. This will be fixed in the next release.


Re: creationTooltip API

Posted: Thu Jun 30, 2022 10:40 am
by yingtao

Dependencies How to customize the style of the tooltip when the dependency creation is not successful?


Re: creationTooltip API

Posted: Thu Jun 30, 2022 11:14 am
by yingtao

Image
Image


Re: creationTooltip API

Posted: Thu Jun 30, 2022 11:30 am
by tasnim

It was achievable with this https://bryntum.com/docs/gantt/api/Scheduler/feature/mixin/DependencyCreation#config-creationTooltip

But it doesn't work. I've created a ticket here: https://github.com/bryntum/support/issues/4873

Thanks for your clarification.


Re: creationTooltip API

Posted: Thu Jun 30, 2022 11:33 am
by alex.l

If you only need to change CSS, there is a b-sch-dependency-creation-tooltip class that you could use to apply styling.


Re: creationTooltip API

Posted: Sat Jul 02, 2022 8:30 pm
by mats

Customizing the HTML is already supported in 5.1, please see https://github.com/bryntum/support/issues/4655