Adds event counting in columns
Implements a method to count the number of events within a specific column, used for layout calculations.
This commit is contained in:
parent
c7b9abde9a
commit
67dfb6e894
1 changed files with 16 additions and 0 deletions
|
|
@ -523,6 +523,22 @@ export class AllDayManager {
|
|||
this.checkAndAnimateAllDayHeight();
|
||||
}
|
||||
|
||||
/**
|
||||
* Count number of events in a specific column using ColumnBounds
|
||||
*/
|
||||
private countEventsInColumn(columnBounds: ColumnBounds): number {
|
||||
var columnIndex = columnBounds.index;
|
||||
var count = 0;
|
||||
|
||||
this.currentLayouts.forEach((layout) => {
|
||||
// Check if event spans this column
|
||||
if (layout.startColumn <= columnIndex && layout.endColumn >= columnIndex) {
|
||||
count++;
|
||||
}
|
||||
});
|
||||
return count;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update overflow indicators for collapsed state
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue