Skip to content

@eightkk/vue-weave / core / CalendarBandOptions

Interface: CalendarBandOptions ​

Defined in: src/core/types.ts:835

Properties ​

label? ​

optional label?: (start, end, local) => string

Defined in: src/core/types.ts:848

Label for an unclipped band. Times are epoch milliseconds; local holds the local fields of start. Wins over locale.

Parameters ​

start ​

number

end ​

number

local ​

CalendarBandLocalTime

Returns ​

string


labelFormat? ​

optional labelFormat?: DateTimeFormatOptions

Defined in: src/core/types.ts:860

Intl.DateTimeFormat options for locale-aware labels. Its timeZone is ignored: the band's own local time is formatted. Defaults by unit: hour { hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }, day and week { year: 'numeric', month: 'short', day: 'numeric' }, month { year: 'numeric', month: 'long' }, year { year: 'numeric' }.


locale? ​

optional locale?: string | readonly string[]

Defined in: src/core/types.ts:854

BCP 47 locale (or list) for labels formatted with Intl.DateTimeFormat from the local date and time of each band start. Without locale and labelFormat, labels are ISO-like (2026-03-29, 2026-03, 09:00). With only labelFormat, the locale is en-US; the runtime's default locale is never used, so labels match on server and client.


step? ​

optional step?: number

Defined in: src/core/types.ts:844

Number of units per band. Defaults to 1.


timeZone? ​

optional timeZone?: string

Defined in: src/core/types.ts:842

IANA time zone such as Europe/Berlin. Bands then follow local dates and hours with daylight-saving rules, so a day band can last 23 or 25 hours. Cannot be combined with utcOffsetMinutes.


utcOffsetMinutes? ​

optional utcOffsetMinutes?: number

Defined in: src/core/types.ts:837

Fixed offset from UTC in minutes. Daylight-saving transitions are not applied. Cannot be combined with timeZone.


weekStartsOn? ​

optional weekStartsOn?: number

Defined in: src/core/types.ts:846

First day of a week, 0 = Sunday to 6 = Saturday. Defaults to 1 (Monday).

Released under the MIT License.