v7.3.0

FluidDayLayout

This class positions events for a DayView by maximizing the visible area of each event. When events overlap, this class determines the minimum amount of horizontal indent required for the overlapping events so that as much of their content as possible is unobstructed. Unlike a strict column-based layout where each overlapping event gets an equal-width column, this fluid approach allows non-overlapping portions of events to expand to full width, only indenting where actual time overlaps occur.

This is the default layout used by DayView. It can be configured through the DayView's eventLayout config:

const calendar = new Calendar({
    modes : {
        day : {
            eventLayout : {
                type             : 'fluid',
                clearanceMinutes : 30,
                gutterWidth      : 20
            }
        }
    }
});
No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • complexityLimit : Number2000
    internal

    The maximum number of possible solutions to evaluate when calculating an event's width.

  • Set this to true to use the full day width for events. By default, overlapping events equally split the width.

Properties

Properties are getters/setters or publicly accessible variables on this class

Source path

Calendar/layout/day/FluidDayLayout.js

Contents