18 lines
419 B
JavaScript
18 lines
419 B
JavaScript
import { Controller } from "@hotwired/stimulus"
|
|
|
|
export default class extends Controller {
|
|
connect() {
|
|
this.initializeCalendar();
|
|
}
|
|
|
|
initializeCalendar() {
|
|
// If using a library like FullCalendar
|
|
const calendar = new FullCalendar.Calendar(this.element, {
|
|
height: '80vh', // Full viewport height
|
|
width: '100%',
|
|
// Other calendar options...
|
|
});
|
|
|
|
calendar.render();
|
|
}
|
|
}
|