ScheduleMenuProps
Agent Runtimes / components/scheduler/ScheduleMenu / ScheduleMenuProps
Type Alias: ScheduleMenuProps
ScheduleMenuProps =
object
Defined in: src/components/scheduler/ScheduleMenu.tsx:40
Props for the self-contained ScheduleMenu component.
The component performs the scheduler service calls internally. Provide the
notebookUid, an authentication token, and the scheduler service
baseUrl (configurable via props) to enable scheduling.
Properties
ariaLabel?
optionalariaLabel?:string
Defined in: src/components/scheduler/ScheduleMenu.tsx:59
Accessible label for the anchor button.
baseUrl?
optionalbaseUrl?:string
Defined in: src/components/scheduler/ScheduleMenu.tsx:51
Base URL of the scheduler service. Defaults to the production service.
enabled?
optionalenabled?:boolean
Defined in: src/components/scheduler/ScheduleMenu.tsx:53
Force-disable the menu. When omitted, the menu is enabled if a token and notebook uid are present.
icon?
optionalicon?:Icon
Defined in: src/components/scheduler/ScheduleMenu.tsx:55
Icon shown on the anchor button (replaced by a spinner while saving).
iconColor?
optionaliconColor?:string
Defined in: src/components/scheduler/ScheduleMenu.tsx:57
Optional color for the anchor icon.
initialCronExpression?
optionalinitialCronExpression?:string
Defined in: src/components/scheduler/ScheduleMenu.tsx:63
Initial cron expression.
initialPreset?
optionalinitialPreset?:SchedulePreset
Defined in: src/components/scheduler/ScheduleMenu.tsx:61
Initial preset selection.
notebookUid?
optionalnotebookUid?:string
Defined in: src/components/scheduler/ScheduleMenu.tsx:42
Target notebook uid to schedule (used to create/update a schedule).
onDeleted?
optionalonDeleted?: (schedule) =>void
Defined in: src/components/scheduler/ScheduleMenu.tsx:67
Called after a schedule is successfully deleted/disabled.
Parameters
schedule
Returns
void
onError?
optionalonError?: (error) =>void
Defined in: src/components/scheduler/ScheduleMenu.tsx:69
Called when saving a schedule fails.
Parameters
error
unknown
Returns
void
onSaved?
optionalonSaved?: (schedule) =>void
Defined in: src/components/scheduler/ScheduleMenu.tsx:65
Called after a schedule is successfully saved.
Parameters
schedule
Returns
void
scheduleUid?
optionalscheduleUid?:string
Defined in: src/components/scheduler/ScheduleMenu.tsx:47
Existing schedule uid to update in place. When provided, changes are persisted with a PUT update instead of a notebook upsert.
token?
optionaltoken?:string
Defined in: src/components/scheduler/ScheduleMenu.tsx:49
Authentication token used for scheduler API calls.