Documentation / jalali-js / weekdayLabelsForGrid
Function: weekdayLabelsForGrid()
weekdayLabelsForGrid(
names,system,weekStartDay?):string[]
Defined in: calendar-grid.ts:78
Rotates Sunday-first weekday names so index 0 matches the first column of buildCalendarGrid() for system. Jalali weeks start on Saturday. Gregorian weeks start on Sunday. Locale packs always store names with Sunday at index 0.
Parameters
names
readonly string[]
system
weekStartDay?
number = ...
Returns
string[]