English
@eightkk/vue-weave / core / EventCalendarSvgOptions
Interface: EventCalendarSvgOptions<E>
Defined in: src/core/exportCalendarSvg.ts:33
Options of renderEventCalendarSvg. E types the events that eventLabel receives.
Extends
Type Parameters
E
E extends CalendarEvent = CalendarEvent
Properties
agendaDays?
optionalagendaDays?:number
Defined in: src/core/eventCalendar.ts:92
Length of the agenda view in days, an integer from 1 to 366. Without it, the agenda shows the week that contains the date (from weekStartsOn) and steps by weeks, like the week view; with it, the agenda shows that many days from the local day of the date and steps by that many days. Other views ignore it.
Inherited from
EventCalendarOptions.agendaDays
background?
optionalbackground?:boolean
Defined in: src/core/svgExportShared.ts:96
Paint an opaque background. Default true.
Inherited from
dayEnd?
optionaldayEnd?:number
Defined in: src/core/exportCalendarSvg.ts:45
dayStart?
optionaldayStart?:number
Defined in: src/core/exportCalendarSvg.ts:44
First and last-plus-one hour of the time grid, integers from 0 to 24. Defaults 0 and 24. The whole span is drawn.
direction?
optionaldirection?:"ltr"|"rtl"
Defined in: src/core/svgExportShared.ts:100
Text direction of labels. For timelines, rtl also mirrors the time axis and places row headings on the right.
Inherited from
eventLabel?
optionaleventLabel?: (event) =>string
Defined in: src/core/exportCalendarSvg.ts:66
Event label text. Defaults to event.label.
Parameters
event
E
Returns
string
fontFamily?
optionalfontFamily?:string
Defined in: src/core/svgExportShared.ts:92
CSS font-family list written on the root element.
Inherited from
formatTime?
optionalformatTime?: (time) =>string
Defined in: src/core/exportCalendarSvg.ts:60
Times of day in labels. Default intlTimeFormatter({ locale, timeZone }).
Parameters
time
number
Returns
string
heading?
optionalheading?:string|false
Defined in: src/core/exportCalendarSvg.ts:64
Text drawn above the view. Defaults to the title of the EventCalendar toolbar; false draws none.
hourHeight?
optionalhourHeight?:number
Defined in: src/core/exportCalendarSvg.ts:47
Height of one hour of the time grid in pixels. Default 48.
idPrefix?
optionalidPrefix?:string
Defined in: src/core/svgExportShared.ts:98
Prefix for the IDs of markers and clip paths, so several exports can be inlined in one page. Default vw-export.
Inherited from
labels?
optionallabels?:Partial<EventCalendarSvgLabels>
Defined in: src/core/exportCalendarSvg.ts:62
Texts; omitted ones use the English EventCalendar defaults.
locale?
optionallocale?:string| readonlystring[]
Defined in: src/core/exportCalendarSvg.ts:40
BCP 47 locale of the labels. Default en-US.
maxMonthLanes?
optionalmaxMonthLanes?:number
Defined in: src/core/exportCalendarSvg.ts:54
Lanes of events per week of the month view before "+N more". Default 3.
now?
optionalnow?:number
Defined in: src/core/exportCalendarSvg.ts:56
Current time: its day is marked as today and the time grid draws the now line.
resources?
optionalresources?: readonlyCalendarResource[]
Defined in: src/core/exportCalendarSvg.ts:42
Resources; the day view draws one column per resource, as EventCalendar resources.
selectedId?
optionalselectedId?:string
Defined in: src/core/exportCalendarSvg.ts:58
An event drawn in the selected style.
theme?
optionaltheme?:SvgExportThemeInput
Defined in: src/core/svgExportShared.ts:90
Colours; omitted values use defaultSvgExportTheme. Each is a CSS colour value (hex, a colour name or keyword, or one of the colour functions such as rgb(), color-mix() or var()); anything else throws a RangeError.
Inherited from
timeZone?
optionaltimeZone?:string
Defined in: src/core/eventCalendar.ts:84
IANA time zone, such as Europe/Berlin, whose local dates the days follow. Default UTC.
Inherited from
title?
optionaltitle?:string
Defined in: src/core/svgExportShared.ts:94
Document title, written as <title> and the accessible name.
Inherited from
view?
optionalview?:EventCalendarViewName
Defined in: src/core/exportCalendarSvg.ts:38
day, week, month or agenda, as EventCalendar view. Default week. Other values throw a RangeError (Unsupported event calendar export view). The length of the agenda follows agendaDays, as on screen.
weekStartsOn?
optionalweekStartsOn?:number
Defined in: src/core/eventCalendar.ts:86
First day of a week, 0 = Sunday to 6 = Saturday. Default 1 (Monday).
Inherited from
EventCalendarOptions.weekStartsOn
width?
optionalwidth?:number
Defined in: src/core/exportCalendarSvg.ts:52
Width of the document in pixels; the day columns share it after the hour gutter. Default 896. The agenda puts the date beside the events from 700 pixels and above them below, like the component's narrow layout.