Skip to main content

getRecurrenceLabel

API Docs


Function: getRecurrenceLabel()

getRecurrenceLabel(rule): string

Defined in: src/utilities/recurrenceFormatter.ts:221

Gets a short recurrence label suitable for UI buttons or compact displays.

Examples:

  • "Daily"
  • "Weekly"
  • "Monthly"
  • "Every 2 weeks"
  • "Every 3 months"

Parameters​

rule​

The recurrence rule from the database

baseRecurringEventId​

string

byDay​

string[] | null

byMonth​

number[] | null

byMonthDay​

number[] | null

count​

number | null

createdAt​

Date

creatorId​

string

frequency​

"DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY"

id​

string

interval​

number

latestInstanceDate​

Date

organizationId​

string

originalSeriesId​

string | null

recurrenceEndDate​

Date | null

recurrenceRuleString​

string

recurrenceStartDate​

Date

updatedAt​

Date | null

updaterId​

string | null

Returns​

string

  • A short label describing the recurrence frequency