Adds handling of fit to width bool
This commit is contained in:
parent
58f98468a1
commit
e6d6599a1e
5 changed files with 32 additions and 2 deletions
|
|
@ -37,6 +37,7 @@ export class CalendarConfig {
|
|||
hourHeight: 60, // Pixels per hour
|
||||
showCurrentTime: true,
|
||||
showWorkHours: true,
|
||||
fitToWidth: false, // Fit columns to calendar width (no horizontal scroll)
|
||||
|
||||
// Interaction settings
|
||||
allowDrag: true,
|
||||
|
|
@ -81,6 +82,7 @@ export class CalendarConfig {
|
|||
if (attrs.dayStartHour) this.config.dayStartHour = parseInt(attrs.dayStartHour);
|
||||
if (attrs.dayEndHour) this.config.dayEndHour = parseInt(attrs.dayEndHour);
|
||||
if (attrs.hourHeight) this.config.hourHeight = parseInt(attrs.hourHeight);
|
||||
if (attrs.fitToWidth !== undefined) this.config.fitToWidth = attrs.fitToWidth === 'true';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue