Skip to content

[scheduler] Allow to configure the event creation #19979

@flaviendelangle

Description

@flaviendelangle

In this PR:

  • Add a new eventCreation?: EventCreationConfig | boolean prop that describes how the event is created when clicking / double clicking the grid

    interface EventCreationConfig {
      /**
       * @default 'double-click'
       */
      interaction?: 'click' | 'double-click';
      /**
       * @default 60 * 60 * 1000 (1 hour)
       */
      durationMs: number;
    }
  • If eventCreation === false then the event creation is disabled

  • If eventCreation === true then we use the default event creation config

Not in this PR:

  • Allow to define defaults for other properties of the event

Metadata

Metadata

Labels

scope: schedulerChanges related to the scheduler.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions