API Reference
EnhancedCalendar
API reference for the EnhancedCalendar class.
import { EnhancedCalendar } from '@forcecalendar/core';
Extends Calendar. Inherits all Calendar methods.
new EnhancedCalendar(config?: CalendarConfig)
Same constructor parameters as Calendar.
| Method | Signature | Returns |
|---|
search | (query: string, options?: SearchOptions) => Promise<SearchResult[]> | Search results |
advancedSearch | (query: string, filters?: object, options?: SearchOptions) => Promise<SearchResult[]> | Filtered search results |
getSuggestions | (partial: string, field?: string) => Promise<string[]> | Autocomplete suggestions |
| Option | Type | Default |
|---|
fields | string[] | ['title', 'description', 'location'] |
fuzzy | boolean | false |
limit | number | 50 |
| Method | Signature | Returns |
|---|
getEventsInRange | (start: Date, end: Date, options?: object) => Event[] | Events with enhanced recurrence |
modifyOccurrence | (eventId: string, date: Date, mods: object) => void | — |
cancelOccurrence | (eventId: string, date: Date, reason?: string) => void | — |
bulkModifyOccurrences | (eventId: string, range: object, mods: object) => void | — |
| Method | Signature | Returns |
|---|
exportWithRecurrence | (format: string) => string | Exported data |
importWithRecurrence | (data: string, format: string) => void | — |
| Method | Signature | Returns |
|---|
getPerformanceStats | () => object | Performance metrics |
| Method | Signature | Returns |
|---|
destroy | () => void | — |