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;
| Field | Type | Description |
|---|---|---|
id | string | number | null | Event 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)} />
Related articles
update-event— saves changes after the editor edits.Editor— companion that listens foreditorData.eventPopup— overrides the default click-to-select path.- Editing — full editor wiring.