1
import { CalendarEventOverlapMode } from 'vuetify/types'
2 1
import { getOverlapGroupHandler } from './common'
3

4 1
const FULL_WIDTH = 100
5

6 1
export const column: CalendarEventOverlapMode = (events, firstWeekday, overlapThreshold) => {
7 0
  const handler = getOverlapGroupHandler(firstWeekday)
8

9 0
  return (day, dayEvents, timed, reset) => {
10 0
    const visuals = handler.getVisuals(day, dayEvents, timed, reset)
11

12 1
    if (timed) {
13 0
      visuals.forEach(visual => {
14 0
        visual.left = visual.column * FULL_WIDTH / visual.columnCount
15 0
        visual.width = FULL_WIDTH / visual.columnCount
16
      })
17
    }
18

19 0
    return visuals
20
  }
21
}

Read our documentation on viewing source code .

Loading