bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Make DomHelper.highlight configurable in how long it leaves the highlight class in place #3420

Open ExtAnimal opened 3 years ago

ExtAnimal commented 3 years ago

So enable

DomHelper.highlight(myElement, 5000); // highlight class stays on for 5 seconds

Also, the various scrollIntoView(..., { highlight : true }) methods in products Scheduler, Gantt, Calendar and TaskBoard.

Should all accept scrollIntoView(..., { highlight : 5000 }); // highlight class stays on for 5 seconds

Feature needed here: https://www.bryntum.com/forum/viewtopic.php?f=44&t=18717

ExtAnimal commented 3 years ago

Also, if no duration passed, it should listen for the animation end event if an animation was started by adding the class in order to remove the class.