Skip to main content

onMouseDown

Description

Fires when the user clicks on a scheduler's element that doesn't have the predefined 'onlick' handler

onMouseDown: (className: string) => void

Parameters

  • className - (required) string - the name of a css class defined for the clicked element

Example

scheduler.attachEvent("onMouseDown", function(className){
//any custom logic here
});

Details

Scheduler's elements that have the predefined 'onclick' handlers are listed in the table below.


Table 1 Scheduler's elements with predefined 'onclick' handlers

Class name

Element

dhx_cal_event_lineMulti-day events in the Day, Week, Month, Units views and any event in the Timeline view
dhx_cal_event_clearOne-day events in the Month view
dhx_event_moveThe header of the event's box used to drag the event in the Day, Week, Units views
dhx_wa_ev_bodyAn event in the WeekAgenda view
dhx_event_resizeThe lower part of the event's box used to resize the event in the Day, Week, Units views
dhx_scale_holderA column in the Day, Week, Units views
dhx_scale_holder_nowA highlighted column with the current date in the Day, Week, Units views
dhx_month_bodyA cell without header in the Month view
dhx_matrix_cellA cell in the Timeline view
dhx_marked_timespanMarked (highlighted) cells
dhx_time_blockBlocked cells
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.