DayPilot.Month.onTimeRangeSelected

Declaration

onTimeRangeSelected(args)

Parameters

  • args.start
  • args.end

Example

    // event creating
    dp.onTimeRangeSelected = function (args) {
        var name = prompt("New event name:", "Event");
        dp.clearSelection();
        if (!name) return;
        var e = new DayPilot.Event({
            start: start,
            end: end,
            id: DayPilot.guid(),
            text: "Event"
        });
        dp.events.add(e);
        dp.message("Created");
    };

api=1

See also DayPilot.Month.api.

Declaration

onTimeRangeSelected(start, end, resource)

Parameters

  • start (DayPilot.Date) - start of the selected range
  • end (DayPilot.Date) - end of the selected range
  • resource (string) - id of the resource

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java