Skip to main content

select-event

Selects an event for editing, or clears the selection when id is null. The store updates editorData to the matching event (or null); the editor opens automatically when an id is provided.

Usage

type SelectEventPayload = { id: EventID | null };
type EventID = string | number;
FieldTypeDescription
idstring | number | nullEvent id to select, or null to clear the selection.

Trigger

api.exec("select-event", { id: 42 });

Observe

api.on("select-event", p => console.log("selected:", p.id));

Intercept

api.intercept("select-event", p => p.id !== "locked");

Component handler

<Calendar :onselectevent="p => console.log('selected:', p.id)" />
  • update-event — saves changes after the editor edits.
  • Editor — companion that listens for editorData.
  • eventPopup — overrides the default click-to-select path.
  • Editing — full editor wiring.