Is it possible to get the Y-axis value based on the mouse position in unit view


Hi, I am implementing the unit view and want to know is it possible to get the relative Y-axis value when hovering the mouse on the unit view.
For example:

It should get the 10:00 based on the mouse position.


You can use the onMouseMove event with getActionData method which returns the current cursor-pointed date and section (if defined):

const dateToStr ="%H:%i");
scheduler.attachEvent("onMouseMove", (id, e) => {
    let action_data = scheduler.getActionData(e);

Here is an example in the snippet: Please open development tools and move the mouse over the scheduler then the relative Y-axis value will be displayed in the console.