The multiselect.add() method selects an event.
Declaration
DayPilot.Queue.multiselect.add(id)
DayPilot.Queue.multiselect.add(e)Parameters
e(DayPilot.Event or raw object) - event to add to the list of selected eventsid(string | number) - event ID
Notes
Please note that selecting multiple events is not supported yet.
Example
const dp = new DayPilot.Queue("dp", {
onEventRightClick: (args) => {
dp.multiselect.add(args.e);
},
// ...
});
dp.init();See Also
DayPilot.Queue.multiselect.clear()
DayPilot.Queue.multiselect.get()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot